Capture a sql query after exectuing a store procedure

  • Follow


Hi all,

  If I execute a sp in sql server 2005 through a C# app which ends with a 
simple sql query (selct * from...) is there a way to capture the results into 
the app. I am asking because at the moment the results are not put into a 
table.

Thanks
0
Reply Utf 11/18/2009 5:26:12 PM

=?Utf-8?B?RWQgSG9jaGJlcmc=?= <EdHochberg@discussions.microsoft.com>
wrote in news:24A898C3-98F1-4832-92D5-64C5BBF57837@microsoft.com: 

>   If I execute a sp in sql server 2005 through a C# app which ends
>   with a 
> simple sql query (selct * from...) is there a way to capture the
> results into the app. I am asking because at the moment the results
> are not put into a table.

Yes. Use a reader or a Adapter.Fill() just like any other stored procedure 
that returns data. Just because a lot of work is being done does not mean 
the selected dataset cannot be captured.

Peace and Grace,
Greg

-- 
Vote for Miranda's Christmas Story
http://tinyurl.com/mirandabelieve

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
|      Think outside the box!             |
*******************************************
0
Reply Gregory 11/18/2009 5:32:48 PM


1 Replies
197 Views

(page loaded in 1.121 seconds)

Similiar Articles:
















7/23/2012 9:16:42 PM


Reply: