Hi,
I have filled da dataset (ds7) from a database with a dataAdapter. Each row presents a phone call (with "date", "time", "duration",..."
I have (just for practice) tried to manually change the date from the first record:
ds7.Tables("Call").Rows(0)("date") = "3/03/2003" (it was 12/12/2005)
When I check the dataset with:
MsgBox(ds7.Tables("Call").Rows(0)("date").ToString())
He shows me the new date, so I sure that I managed to change it inside the dataset
Then I write:
dataAdapterName.update(ds7, "call")
to write it back into database
but at runtime I get:
An unhandled exception of type 'System.InvalidOperationException' occurred in system.data.dll
Additional information: Update requires a valid UpdateCommand when passed DataRow collection with modified rows.
I do not manage to solve this. Does it mean that i only should use commands like "UPDATE ... FROM...." and not just change te value???? Anybody has an idea?
I have filled da dataset (ds7) from a database with a dataAdapter. Each row presents a phone call (with "date", "time", "duration",..."
I have (just for practice) tried to manually change the date from the first record:
ds7.Tables("Call").Rows(0)("date") = "3/03/2003" (it was 12/12/2005)
When I check the dataset with:
MsgBox(ds7.Tables("Call").Rows(0)("date").ToString())
He shows me the new date, so I sure that I managed to change it inside the dataset
Then I write:
dataAdapterName.update(ds7, "call")
to write it back into database
but at runtime I get:
An unhandled exception of type 'System.InvalidOperationException' occurred in system.data.dll
Additional information: Update requires a valid UpdateCommand when passed DataRow collection with modified rows.
I do not manage to solve this. Does it mean that i only should use commands like "UPDATE ... FROM...." and not just change te value???? Anybody has an idea?