PC Review


Reply
Thread Tools Rate Thread

Re: executereader not returning parameters

 
 
William \(Bill\) Vaughn
Guest
Posts: n/a
 
      26th Aug 2003
See my article at http://www.betav.com/msdn_magazine.htm that discusses
parameters passed back from a SP.
Just remember that OUTPUT parameters are past last in the TDS stream. You
need (therefore) to complete rowset population before they are available.
This means closing the DataReader or using Fill to process the rowset.

hth

--
____________________________________
Bill Vaughn
MVP, hRD
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.
__________________________________

"Manivesa" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have a Stored Procedure in SQL server that returns an output
> parameter and a cursor. I prepare a sqlcommand with the input
> parameters and all works fine except that if I use
> sqlcommand.executereader the output parameters contains nothing and if
> I use sqlcommand.executenonquery I do not have the rows my stored
> procedure returns.
>
> Anybody can help??
>
>
> Thanks in advance.



 
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
Retrieving output parameters with ExecuteReader() instead ofExecuteNonQuery msch.prv@gmail.com Microsoft ASP .NET 2 27th Jan 2008 02:08 AM
returning parameters from form Roy Goldhammer Microsoft Access Form Coding 1 28th Jun 2007 01:05 PM
Re: SqlCommand.ExecuteReader returning nothing? Marina Levit [MVP] Microsoft ADO .NET 2 28th Dec 2006 07:43 PM
Output Parameters null when using SqlCommand.ExecuteReader()...? mo Microsoft ADO .NET 6 7th Feb 2004 09:35 PM
executereader not returning parameters Jason Goodwin Microsoft ADO .NET 0 26th Aug 2003 08:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:43 PM.