G
Guest
I'm using SQL Server stored procedures to access my tables, but I'm having
problems with concurrency violations when updating.
The ADO.NET Core Reference (Ch. 11, pg 469) says you can use batch queries
to retrieve data after submitting an update via a data adapter. Am I
correct in assuming this same concept be applied to stored procedures? If
so, a code example would be greatly appreciated.
For reference, here are the steps I took so far:
- Set DataAdapter.UpdateCommand.UpdatedRowSource = FirstReturnedRecord
- Added code to stored procedure to SELECT the updated record.
- Added code to update the database:
DataAdapter.Update(DataSet.DataTable.Select("", "", _
DataViewRowState.ModifiedCurrent))
Thank you,
Eric
problems with concurrency violations when updating.
The ADO.NET Core Reference (Ch. 11, pg 469) says you can use batch queries
to retrieve data after submitting an update via a data adapter. Am I
correct in assuming this same concept be applied to stored procedures? If
so, a code example would be greatly appreciated.
For reference, here are the steps I took so far:
- Set DataAdapter.UpdateCommand.UpdatedRowSource = FirstReturnedRecord
- Added code to stored procedure to SELECT the updated record.
- Added code to update the database:
DataAdapter.Update(DataSet.DataTable.Select("", "", _
DataViewRowState.ModifiedCurrent))
Thank you,
Eric