Question

I have set up 2 servers which are linked. From my LOCAL SERVER, I am executing a SP that will be run on the REMOTE SERVER.

The next part of the script requires me to INSERT DATA from the changes made via the SP on the REMOTE SERVER to the LOCAL SERVER.

Therefore my question is, is this process asynchronous or synchronous?

Was it helpful?

Solution

If you don't specify otherwise it's all synchronous.

This is how you call sps asynchronously from C# (note -->

new SqlConnection(connectionstring + "async=true;");

).

This is one way to call sps asynchronously from T-SQL.

All the above just to show that if you're simply calling the sps it's all synchronous (the caller waits for the callee to return).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top