Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table not updated.
Message
From
16/06/2007 12:27:02
 
 
To
14/06/2007 15:54:37
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01232865
Message ID:
01233739
Views:
9
Actually, I think the .Update() method does an .AcceptChanges() for you automatically ... I'm not 100% sure about this, since I don't use the .Update() method. Easy enough to test though.

~~Bonnie



>>Sorry about not replying sooner...
>
>No problem, I think you answered the usefulness of accept changes for me!
>
>If I'm understanding this correctly, if I don't use .AcceptChanges after update, and I then call update again, all the records will re-updated instead of just the ones since the last update. I think I get now, that explained a lot, thanks.
>
>>Yes, the .AcceptChanges only "finalizes" the changes in the datatable... you need to reconcile the differences back to the SQL table. And really, I think you should be sending the change back to the database and if there are no errors, do an .AcceptChanges.
>>
>>Sorry about not replying sooner...
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform