SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 Transact-SQL (2012)
 Conventions
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

elwoos
Flowing Fount of Yak Knowledge

United Kingdom
2050 Posts

Posted - 09/06/2013 :  04:30:24  Show Profile  Reply with Quote
If you're doing a simple UPDATE on a single table from a stored procedure what, if anything, do you return from the stored procedure and why?

tia

steve

-----------

Insanity: doing the same thing over and over again and expecting different results.

bandi
Flowing Fount of Yak Knowledge

India
2206 Posts

Posted - 09/06/2013 :  05:04:10  Show Profile  Reply with Quote
Most of the developers will return "Number of rows processed" parameter as output... Because in the case of Success it returns the number(How many rows affected for the UPDATE statement); Otherwise return ERROR code from the catch block....

--
Chandu
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000