Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Nested Stored Procedure

Status
Not open for further replies.

arpan

Programmer
Oct 16, 2002
336
IN
Can anyone suggest me some URLs where I can find examples on how to create nested stored procedures?

Thanks,

Arpan
 
Are you trying to see how to call one SP from another? I don't think that they actually nest....



CREATE PROC main_proc
AS
-- in the next line @infoBox is populated by the other SP...
EXEC sp_requestInfoBox @requestID,null,null,@infoBox output
...
GO

CREATE PROC dbo.sp_requestInfoBox(
@requestID INT = NULL,
@requestCode char(7) = NULL,
@tempID INT = NULL,
@infoStr varchar(1500) OUTPUT
)

AS
....
GO
-- What did you expect? This is FREE advice. LOL[ponder]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top