Updating two table through data adapter.

T

trialproduct2004

Hi all,

I am having one confusion regarding working of data adapter.

What i am doing is i am having one stored procedure which is returing
me data from two different table.

Then i am collecting data from this sp into dataset using dataadapter.

What i am doing is updating both table of dataset.

Here my problems start. What i want to do it to stored changes which i
made in dataset into database.

But dataadapter stored only changes which i made in first table and not
of second table.

What should i do to store changes of second table of dataset into
database.

As it is given that after making changes to dataset we can reflect
those changes to database which is not happening in my case.

Can someone tell me what i am doing wrong. Please correct my concept if
i am wrong.

Please provide me proper solution to store changes made in dataset
containing two table into database.

Thanks in advance.
 
W

William \(Bill\) Vaughn

The DataAdapter (like the TableAdapter) is designed to provide easy updating
of one (and only one) table. That said you can trap the Update events and
execute your own UPDATE/INSERT/DELETE SQL as needed--but you'll have to
generate the code for that yourself.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top