RSS Forums RSS

getting value of return value of stored procedure to code behined,with patterns prace

Please support our C# advertiser: DiscountASP.NET – 3 Months Free on C# Web Hosting
Reply
Posts: 3
Reputation: naveen_arc is an unknown quantity at this point 
Solved Threads: 1
naveen_arc naveen_arc is offline Offline
Newbie Poster

getting value of return value of stored procedure to code behined,with patterns prace

  #1  
Nov 15th, 2008
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)
AddThis Social Bookmark Button
Reply With Quote  
Posts: 171
Reputation: Jugortha is an unknown quantity at this point 
Solved Threads: 16
Jugortha Jugortha is offline Offline
Junior Poster

Re: getting value of return value of stored procedure to code behined,with patterns prace

  #2  
Nov 15th, 2008
Why you don' use an UDF user defined function instead of a stored procedure
Reply With Quote  
Posts: 3
Reputation: naveen_arc is an unknown quantity at this point 
Solved Threads: 1
naveen_arc naveen_arc is offline Offline
Newbie Poster

Re: getting value of return value of stored procedure to code behined,with patterns prace

  #3  
Nov 16th, 2008
Originally Posted by Jugortha View Post
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)
Reply With Quote  
Posts: 171
Reputation: Jugortha is an unknown quantity at this point 
Solved Threads: 16
Jugortha Jugortha is offline Offline
Junior Poster

Re: getting value of return value of stored procedure to code behined,with patterns prace

  #4  
Nov 16th, 2008
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
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Views: 1104 | Replies: 3 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:30 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC