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 - 2001-06-26 : 08:31:48
|
| Peter writes "Can someone please explain the correct way to ripple output variables. Thanks.The following test does not produce the expected results:drop procedure Test2goCreate procedure Test2( @ret_id varchar(255) OUTPUT)ASBegin Set @ret_id = '999' print 'Inside Test2 :' print @ret_idendGodrop procedure Test3goCreate procedure Test3( @ret_id varchar(255) OUTPUT)ASBegin Exec Test2 @ret_id Set @ret_id = @ret_id + '000' print 'Inside Test3: ' print @ret_idendgoDeclare @the_id varchar(255)Exec Test3 @the_idprint 'The id is : 'print @the_idGo" |
|
|
|
|
|