Click here to Skip to main content
15,900,713 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hi I have this simple question.

I have created the data adapter for for 1 table. Generated its data set.
Does this same data adapter and data set used for other tables to add, delete or update them?
I mean a single data adapter contain multiple tables and perform all the task on them?

If yes then how??
Posted
Updated 26-Oct-11 6:14am
v2

1 solution

I could possibly say yes or no, but that would not really help you. One DataAdapter can have multiple result sets and a DataSet can be filled by multiple DataAdapters.
I suggest you read the following MSDN article: Populating a DataSet from a DataAdapter[^]. It even has a section Multiple Result Sets and Populating a DataSet from Multiple DataAdapters.
Here is some additional reading on the DataAdapter[^] and more specific, the SqlDataAdapter[^]. Those links should provide you with any questions you might have on DataAdapters. You can even follow other links in the article for even more information.
Another interesting read is DataSets, DataTables and DataViews[^].
I think you should manage, but would you find yourself in need of an example, Inserting relational data using DataSet and DataAdapter[^] is a great article for that.
Hope it helps! :)
 
Share this answer
 
Comments
Espen Harlinn 29-Oct-11 12:18pm    
Another excellent reply :)
Sander Rossel 29-Oct-11 12:25pm    
Thanks :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900