Click here to Skip to main content
15,912,273 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
Dear all.

My question is that Can we use more than one dataAdapters with single DataSet like this ???

C#
Adapter1.Update (dataTable1);
Adapter2.Update (dataTable2);
Adapter3.Update (dataTable3)


While single dataset contains these 3 DataTables. If YES then can each adapter may contain different SelectCommand or always same SelectCommand ????

Actuly I want to update a dataset in sqlDataBase. This dataset has 3 dataTables mapped to 3 DataBase's Tables.
Posted

1 solution

Hi You can do these.Add a dataset to your project and then inser tor tables from Server Expolrer to it.You will have a dataadapter for each.then you can use them on your forms.
Yours Farhad.
 
Share this answer
 

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