DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C# (http://www.daniweb.com/forums/forum61.html)
-   -   getting value of return value of stored procedure to code behined,with patterns prace (http://www.daniweb.com/forums/thread157541.html)

naveen_arc Nov 15th, 2008 11:33 am
getting value of return value of stored procedure to code behined,with patterns prace
 
getting value of return value of stored procedure to code behined,with MicroSoft Patterns and Practices.

Hi all,

I am using Microsoft Patterns and Practices to make a database connection to my application. I am able to get the value of the OUT parameter of the stored procedure to code behind. But not able to find the way how to get the return value of a stored procedure to code behind.

Can anyone plz let me know the way....! The example code snippet is really appriciable.....!

Thanks & Regards,
(Naveen Kumar M)

Jugortha Nov 15th, 2008 2:50 pm
Re: getting value of return value of stored procedure to code behined,with patterns prace
 
Why you don' use an UDF user defined function instead of a stored procedure

naveen_arc Nov 16th, 2008 11:22 am
Re: getting value of return value of stored procedure to code behined,with patterns prace
 
Quote:

Originally Posted by Jugortha (Post 736778)
Why you don' use an UDF user defined function instead of a stored procedure


Hi,

Thanx for the reply and actually that is the clients requirement. if not i could have gone for OUT parameter.

As this is the client's requirement i could not change. So, please let me know the way.

Thanks & Regards,
(Naveen Kumar M)

Jugortha Nov 16th, 2008 5:51 pm
Re: getting value of return value of stored procedure to code behined,with patterns prace
 
Try this link

http://www.sqlteam.com/article/store...returning-data

I think you have to mark the desired value to return with the OUTPUT keyword


All times are GMT -4. The time now is 9:44 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC