S
Suranga
Hello!
How do I read back values into a DataTable within a Dataset after an
"insert" or "update" (via SqlDataAdapter.Update() method) to the
database? After "inserts" or "updates", table columns may change, some
via triggers, and others like "timestamp", and these changes do not
automatically propogate back to the dataset.
For instance, let's say we have a SQL Server table as below;
| UserID | Fname | Lname | Timestamp |
SQL Server's "timestamp" type gets automatically updated everytime a
record is updated, (I use them for optimistic concurrency handling.)
If I update a record ( say Fname), "timestamp" gets a new value
automatically in the table. How do I get this new value back to the
dataset?
Thanks
How do I read back values into a DataTable within a Dataset after an
"insert" or "update" (via SqlDataAdapter.Update() method) to the
database? After "inserts" or "updates", table columns may change, some
via triggers, and others like "timestamp", and these changes do not
automatically propogate back to the dataset.
For instance, let's say we have a SQL Server table as below;
| UserID | Fname | Lname | Timestamp |
SQL Server's "timestamp" type gets automatically updated everytime a
record is updated, (I use them for optimistic concurrency handling.)
If I update a record ( say Fname), "timestamp" gets a new value
automatically in the table. How do I get this new value back to the
dataset?
Thanks