HighTechTalks DotNet Forums  

parameter output

Dotnet Framework (ODBC.net) microsoft.public.dotnet.framework.odbcnet


Discuss parameter output in the Dotnet Framework (ODBC.net) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Miguel Pardo
 
Posts: n/a

Default parameter output - 11-28-2003 , 06:34 PM






I have an stored procedure which has an OUTPUT parameter,
how can i get it, it has to be through a DataReader or
something like that???? or when i call it???

can you give me an example???


Any help will be welcome, thanX!!!!

Regards...




Reply With Quote
  #2  
Old   
Bob Beauchemin
 
Posts: n/a

Default Re: parameter output - 11-28-2003 , 08:09 PM






Hi Miguel,

You just read the value from the Parameters collection after calling
IDbCommand.ExecuteNonQuery. If your stored procedure returns a resultset
(through a DataReader) and output parameters and you use
IDbCommand.ExecuteReader, the reader must be closed before you can fetch the
output parameter value, in some providers (like the SQL Server data
provider).

Bob Beauchemin
http://staff.develop.com/bobb


"Miguel Pardo" <mpardot (AT) yahoo (DOT) com> wrote

Quote:
I have an stored procedure which has an OUTPUT parameter,
how can i get it, it has to be through a DataReader or
something like that???? or when i call it???

can you give me an example???


Any help will be welcome, thanX!!!!

Regards...






Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.