PC Review


Reply
Thread Tools Rate Thread

Adapter.Update on Two Tables

 
 
Mo
Guest
Posts: n/a
 
      17th Mar 2004
Hello

I have a data set that contains two tables tblheader and tbldetails.
The insert command is a stored procedure with paramters. I am doing the following

adapter.InsertCommand.Parameters.Add(New SqlParameter("@p1", SqlDbType.VarChar, 40, strp1))
adapter.InsertCommand.Parameters.Add(New SqlParameter("@p2", SqlDbType.VarChar, 40, strp2))
adapter.InsertCommand.Parameters.Add(New SqlParameter("@p3", SqlDbType.VarChar, 40, strp3))

Now...strp1 and strp2 are the sourceColumn names of the columns that the paramters will be mapped to.
strp3 is a column in the header table...
when I do adapter.update (ds, tbldetail.tablename) it gives me an error that the sttored procedure expects paramter @p3 that was not supplied..
how can i solve this??
how can i join in ADO.NET??
thanks in advance




___
Newsgroups brought to you courtesy of www.dotnetjohn.com
 
Reply With Quote
 
 
 
 
Cor
Guest
Posts: n/a
 
      17th Mar 2004
Hi Mo,

I think by giving the needed right commands to the adapter before he start
the update

Cor


 
Reply With Quote
 
Mo
Guest
Posts: n/a
 
      18th Mar 2004
The right (Insert Command) is given to the data adapter...I only need to update inserts in my case. The problem is that I have a header table and a detail table. How can I JOIN the two tables in ADO.NET?
>Hi Mo,
>
> I think by giving the needed right commands to the adapter before he start
> the update
>
> Cor
>
>
>


___
Newsgroups brought to you courtesy of www.dotnetjohn.com
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
he Catalyst Control Center is not supported by the driver version of your enabled graphics adapter. Please update your ATI graphics driver, or enable your ATI adapter using the Displays Manager. Keith Windows Vista General Discussion 23 5th Aug 2009 09:59 PM
Data adapter.Update with fields that are part of the update condit =?Utf-8?B?Um9nZXIgVHJhbmNoZXo=?= Microsoft ADO .NET 3 28th Feb 2007 12:31 AM
Table Adapter for multiple tables? offwhite Microsoft ADO .NET 16 2nd Jan 2007 08:51 AM
SQL Adapter slow to fill one of three tables J. Clay Microsoft ADO .NET 7 14th Jun 2005 04:51 AM
How to create data adapter for multiple tables (joint tables)? Nguyen Microsoft ADO .NET 1 16th Jun 2004 09:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:23 AM.