Link to home
Start Free TrialLog in
Avatar of rick
rick

asked on

SP that executes 2 other SPs

Is it possible to have 1 SP execute 2 other SPs simultaneously?

Looking to have both SPs execute at the same time.  Not run one, then other runs after.

Is that possible?

Something like this...?
CREATE PROCEDURE SP_DEMO
AS
SET NOCOUNT ON


EXEC SP_1 @SQL, @TABLE_NAME
GO
EXEC SP_2 
GO

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Concurrent execution ? Not within SQL Server.

Jim has offered some good ideas, otherwise you would need to submit to some external process where you are not waiting on the results.

Hmmm... Would be interesting.....
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rick
rick

ASKER

thank you both for your input.  Confirmed what I thought.
Avatar of rick

ASKER

Thank you both for your help.  Confirmed what I thought.
A pleasure, let us know how you go. Good luck and thank you :)