开发者

Stored procedure executing another stored procedure

开发者 https://www.devze.com 2022-12-22 13:46 出处:网络
When a Stored Procedure has a query inside to execute another Stored Procedure, does the calling Stored Procedure stop other Stored Procedure has finished executing?I guess I\'m trying to get straight

When a Stored Procedure has a query inside to execute another Stored Procedure, does the calling Stored Procedure stop other Stored Procedure has finished executing? I guess I'm trying to get straight in my head whether it's like sy开发者_JAVA百科nchronous and asynchronous calls.


Yes they are synchronous. They would have to be. If stored procedure A is expecting a result from stored procedure B, then it would have to wait for Stored Procedure B to finish. The implications would be huge if they were automatically asynchronous.

For a follow up. Here is how to make stored procedures asynchronous in MSSQL Server (well as asynchronous as possible):

Asynchronous Stored Procedure Calls


Yes, it's synchronous

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号