S
Steven Licciardi
I am using parameters etc when populating a dataset using a DataAdapter. I
have an Update command of the folllowing form :
UPDATE projects SET
ID=@ID,Address1=@Address1,Address2=@Address2,Postcode=@Postcode WHERE ID=@ID
Where ID is my primary key. When I change Addres1 etc.. then use
DataAdapter.Update(changes) everything is updated nicely, however if I
change the ID value of one of the rows then use adapter.update(changes) I
get a concurrency violation exception, presumably this occurs because I am
trying to update the ID value when ID is in the WHERE clause. Is there
anything I can do to correct this problem?
Thanks,
Steven
have an Update command of the folllowing form :
UPDATE projects SET
ID=@ID,Address1=@Address1,Address2=@Address2,Postcode=@Postcode WHERE ID=@ID
Where ID is my primary key. When I change Addres1 etc.. then use
DataAdapter.Update(changes) everything is updated nicely, however if I
change the ID value of one of the rows then use adapter.update(changes) I
get a concurrency violation exception, presumably this occurs because I am
trying to update the ID value when ID is in the WHERE clause. Is there
anything I can do to correct this problem?
Thanks,
Steven