Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to update a Dataset with multiples tables
Message
From
08/02/2008 18:32:17
 
 
To
08/02/2008 15:33:31
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01287578
Message ID:
01290971
Views:
19
I don't think it would be the DiffGram that's the problem, but I don't know for sure. I don't do it that way, but then again I don't use DataAdapter.Update() either.

So, next it might be your DataAdapter.Update(). How have you set that up? Does it work if you don't use a DiffGram? Are you using a CommandBuilder? Is this SQL Server or some other database?

~~Bonnie



>Bonnie:
>
>It's very simple. I have a dataset made of two tables. I update dataset via a Diffgram and Update doesn't work at all. This is the code:
>
>StringReader sr = new StringReader(diffGram);
>DS.ReadXml(sr, XmlReadMode.DiffGram);
>MyDataAdapter.Update(DS);
>
>Any idea, please?
Bonnie Berent DeWitt
NET/C# MVP since 2003

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

Click here to load this message in the networking platform