R
Rob Gibbens
If I manually create my own dataset with no backing database, is it
possible to run an Update sql command on this dataset? What I would
like to do is this
Dim ds as New DataSet
Dim dr as DataRow
ds.Tables.Add("table1")
ds.Tables("table1").Columns.Add("column1")
dr = ds.Tables("table1").NewRow
dr("column1") = "Value1"
ds.Tables("table1").Rows.Add(dr)
'' HERE IS THE PROBLEM -- FAKE CODE AHEAD
ds.UpdateCommand = "Update table1 SET column1 = 'Value2'"
ds.Update()
Is there any way to do this? Everything I've seen involves using a
DataAdapter with an underlying connection to a database.
possible to run an Update sql command on this dataset? What I would
like to do is this
Dim ds as New DataSet
Dim dr as DataRow
ds.Tables.Add("table1")
ds.Tables("table1").Columns.Add("column1")
dr = ds.Tables("table1").NewRow
dr("column1") = "Value1"
ds.Tables("table1").Rows.Add(dr)
'' HERE IS THE PROBLEM -- FAKE CODE AHEAD
ds.UpdateCommand = "Update table1 SET column1 = 'Value2'"
ds.Update()
Is there any way to do this? Everything I've seen involves using a
DataAdapter with an underlying connection to a database.