Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2002-02-20 : 09:13:31
|
| Steve writes "If the return statement is not used in a called stored procedure. What is the value passed back to the calling stored procedure if the execution of the called stored proc was unsuccessful( in other words a run-time error )?" |
|
|
robvolk
Most Valuable Yak
15732 Posts |
Posted - 2002-02-20 : 09:37:45
|
| A system stored procedure returns a zero if it was successful, and a non-zero value if there was an error.In user-defined procedures, nothing is returned unless you explictly RETURN a value. This is not affected by any errors that have occurred. |
 |
|
|
|
|
|