Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to update a Dataset with multiples tables
Message
De
08/02/2008 18:32:17
 
 
À
08/02/2008 15:33:31
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01287578
Message ID:
01290971
Vues:
18
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform