Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

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

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

Flowing Fount of Yak Knowledge

United Kingdom
2052 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?




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

Flowing Fount of Yak Knowledge

2242 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....

Go to Top of Page
  Previous Topic Topic Next 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.01 seconds. Powered By: Snitz Forums 2000