PC Review


Reply
Thread Tools Rate Thread

executereader not returning parameters

 
 
Jason Goodwin
Guest
Posts: n/a
 
      26th Aug 2003
Just a note, but are you making sure to close the
DataReader from the ExecuteDataReader call before you try
to access your output parameters? The output parameters
are the last thing returned by the server, so the stream
has to be closed out before it will pick up the returned
values.

>-----Original Message-----
>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
Re: executereader not returning parameters William \(Bill\) Vaughn Microsoft ADO .NET 0 26th Aug 2003 08:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:30 AM.