Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating Multiple Tables Using a Single Data Adaptor
Message
De
25/11/2004 10:23:06
 
 
À
24/11/2004 23:02:47
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
Environment:
VB.NET 1.1
Database:
MS SQL Server
Divers
Thread ID:
00964583
Message ID:
00964686
Vues:
7
Hi Martin,

It all depends on how you plan to do the updates later ... if you want to use the CommandBuilder and/or you want to use the DataAdapter.Update() method, then you'd be better off using a separate DataAdapter for each table. Although I guess you could use the same DataAdapter and rebuild your Select/Insert/Delete commands each time you switch to a different table if you really need to do it that way.

If you're not using the CommandBuilder or the DataAdapter.Update() method, then it doesn't matter at all.

~~Bonnie



>Hi all!
>
>I'm finally attempting to move to ADO.NET from ADO 2.6. Some getting use to required on my part.
>
>Anyway, my question is "Is it possible to update (Insert, Update, Delete) multiple tables using a single Data Adaptor object? I know I can create a single dataset to hold multiple (even unrelated) tables. But I use one adaptor for each table in the data set. Is this alright? Or is there a more sane way of doing this?
>
>Thanx! in advance 8 )
>
>Martin
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