DataAdapter: Concurrency violation


hello! write on c#, ado.net, dataset. have dataset , dataadapter filled it. in dataadapter override insert, update, delete commands. when use stored procedures, these commands, well. however, when use transactionns in stored procedures, exception: "concurrency violation: deletecommand affected 0 of expected 1 records." can please tell me do, , common solutions problem there? sample code , db http://dl.dropbox.com/u/46828938/datagridsample.zip reproduce problem: delete row datagrid , press "update" button. dbconcurrencyexception ("concurrency violation: deletecommand affected 0 of expected 1 records.") reproduce on:"productdataadapter.update(dataset, "products");" string.

ps:

1. sorry offtopic :)

2. example single-user: works on 1 machine / run 1 instance.

best regards!



Silverlight  >  Programming Silverlight with .NET – General



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........