Q
Problem solve Get help with specific problems with your technologies, process and projects.

Getting results of one stored procedure for use in another

I have two stored procedures in SQl Server 2000. SP2 requires one parameter, and SP1 requires the results of SP2. How do I call SP2 (with parameter) from SP1??

Use:

Exec proc2 @parameter

For More Information

Dig Deeper on SQL Server Stored Procedures

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchBusinessAnalytics

SearchDataCenter

SearchDataManagement

SearchAWS

SearchOracle

SearchContentManagement

SearchWindowsServer

Close