views:

124

answers:

1

Hello Experts

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?

+1  A: 

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).

JohnIdol
How do I specify it otherwise? BTW, is there a link you could provide so I can do a bit more reading up on this? Cheers!
Nai
Oh and thanks for your answer :)
Nai
see edit, those links are a good start - if you master asynchronous calls you'll be always one step ahead :)
JohnIdol
it looks a bit beyond my level of sql skills for the moment. but thanks for the up vote too :P
Nai
hmm how do i change the status of the question as 'answered'?
Nai
+1, I hate getting the correct accepted answer, but no up votes!
KM
thanks - I do too :)
JohnIdol