472,145 Members | 1,439 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,145 software developers and data experts.

Help regarding sqldataadapter.

hi all

i am having problem at a time of using sqldataadapter.

My adapter is using two tables into which i want to add records.

I am using two dataset for updating these table.

My problem is even if i added records into two different tables it is
adding same record twice in one table only and not in second table.

Can someone tell me why this is happening.

Any help will be truely apprecated.

thanks in advance.

Nov 25 '05 #1
1 1094
Hi,

It's a bit hard to answer without seeing the code.
But normally you use a dataadapter for a single table.
one select, one update one insert and one delete command all hooked to one
data adapter.

So my advice make another data adapter for the second table in your dataset.

Regards,
--
Rainier van Slingerlandt
(Freelance trainer/consultant/developer)
www.slingerlandt.com
"tr**************@yahoo.com" wrote:
hi all

i am having problem at a time of using sqldataadapter.

My adapter is using two tables into which i want to add records.

I am using two dataset for updating these table.

My problem is even if i added records into two different tables it is
adding same record twice in one table only and not in second table.

Can someone tell me why this is happening.

Any help will be truely apprecated.

thanks in advance.

Nov 25 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Stephen | last post: by
3 posts views Thread by Mike | last post: by
3 posts views Thread by Eric | last post: by
reply views Thread by muralidharan | last post: by
reply views Thread by Bhuwan Bhaskar | last post: by
1 post views Thread by =?Utf-8?B?RGFuIFNoZXBoZXJk?= | last post: by
reply views Thread by Saiars | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.