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 |
|
simondeutsch
Aged Yak Warrior
547 Posts |
Posted - 2002-06-03 : 14:12:46
|
| Hiya,How do I assign the return value of a stored proc. into a variable in the calling stored procedure?Sarah Berger MCSD |
|
|
Page47
Master Smack Fu Yak Hacker
2878 Posts |
Posted - 2002-06-03 : 14:16:20
|
quote: SyntaxExecute a stored procedure:[[EXEC[UTE]] { [@return_status =] {procedure_name [;number] | @procedure_name_var } [[@parameter =] {value | @variable [OUTPUT] | [DEFAULT]] [,...n][WITH RECOMPILE]--SQL Server 7, Books Online
example:declare @return_value intexec @return_value = usp_myprocselect @return_value <O> |
 |
|
|
simondeutsch
Aged Yak Warrior
547 Posts |
Posted - 2002-06-03 : 14:30:15
|
| Thanks a lot! Very good, clear answer.Sarah Berger MCSD |
 |
|
|
|
|
|