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 - 2003-10-09 : 08:00:29
|
| David writes "How do I, is there a way to retreive the value from a stored procedure within another stored procedure.I want a value created in one stored procedure to be used within another stored procedure.Thanx in advance!" |
|
|
dsdeming
479 Posts |
Posted - 2003-10-09 : 08:27:01
|
| Does the first procedure call the second one? Can't you just pass the value from the first procedure as a parameter to the second procedure?Dennis |
 |
|
|
X002548
Not Just a Number
15586 Posts |
Posted - 2003-10-09 : 09:01:02
|
Something like:USE NorthwindGOCREATE PROC myProc2 @x datetime outputASSELECT @x = GetDate()GOCREATE PROC myProcAS DECLARE @x datetime EXEC myProc2 @x OUTPUT SELECT @xGOEXEC myProcGODrop PROC myProcGODrop PROC myProc2GO HTH...Brett8-)SELECT @@POST FROM Brain ORDER BY NewId()That's correct! It's an AlphaNumeric! |
 |
|
|
|
|
|