PC Review


Reply
Thread Tools Rate Thread

Come ADO experts!!!

 
 
Ian Frawley
Guest
Posts: n/a
 
      23rd Nov 2005
I asked this question before:

I have a Strongly typed DataSet one of the datatables within it has data in
it. I have a stored procedure that expects a parameter that returns data
that also has got to go into the same datatable. Is it possible to bind one
of the columns that is already populated to a paramter of a Dataadapters
select command and call the .Fill to execute the stored procedure which will
fill the remaining empty columns?

--

Regards

Ian


 
Reply With Quote
 
 
 
 
Earl
Guest
Posts: n/a
 
      24th Nov 2005
I would set a variable to the value of the column that has the parameter
that you need. Then after you do a fill for the second select, you will have
to attach those columns to the main datatable. But it sounds like you
already have the columns but not the data (not sure why you do it this way,
but to each his own), so you will have to remove the existing empty columns
and attach the new columns that you pulled with the second sproc. This is
do-able, but it sure sounds ugly.

"Ian Frawley" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I asked this question before:
>
> I have a Strongly typed DataSet one of the datatables within it has data
> in
> it. I have a stored procedure that expects a parameter that returns data
> that also has got to go into the same datatable. Is it possible to bind
> one
> of the columns that is already populated to a paramter of a Dataadapters
> select command and call the .Fill to execute the stored procedure which
> will
> fill the remaining empty columns?
>
> --
>
> Regards
>
> Ian
>
>



 
Reply With Quote
 
Ian Frawley
Guest
Posts: n/a
 
      25th Nov 2005

"Earl" wrote in message

Cheers Earl, its pretty hard to explain the problem I am having but I
thought a data adapter would just do this for me, I'm fairly sure it will I
just need to find an example.

>I would set a variable to the value of the column that has the parameter
>that you need. Then after you do a fill for the second select, you will
>have to attach those columns to the main datatable. But it sounds like you
>already have the columns but not the data (not sure why you do it this way,
>but to each his own), so you will have to remove the existing empty columns
>and attach the new columns that you pulled with the second sproc. This is
>do-able, but it sure sounds ugly.
>
>



 
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
Here's one for the experts davegthomas Windows Vista General Discussion 4 15th Nov 2007 10:48 PM
Need the Experts dion.naidoo@za.wdsglobal.com Windows Vista General Discussion 3 16th Apr 2007 03:56 PM
Thank all of you experts! =?Utf-8?B?S2luZ3NLaWQ0Mw==?= Microsoft Powerpoint 1 8th Nov 2006 10:03 PM
ask experts johnlei Microsoft ASP .NET 0 14th Aug 2003 03:34 AM
Here's one for you ASP.NET experts... Luther Miller Microsoft ASP .NET 0 3rd Jul 2003 04:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:35 PM.