After investigating our ETL Process for months i fell into something strange.
We have one machine (A) which we are using in order to pull data from other machines (B).
- When i make a SELECT Statement using Direct Connection from machine (A) to machine (B), the execution time is 09-10 secs
- When i make the same SELECT Statement using Linked Server from machine (A) to the same machine (B), the execution time is 25-35 secs.
So why there is this difference?
The same data are transferred in each case.
Best Answer
In the left window, when you connect directly to FORBISPRD08:
In the right window, when you use a linked server
See the difference? Same data might be sent, but there's more steps involved. When you need data, connect to the server that has the data.
Linked servers are like going to a bar, seeing someone you like, and then starting a chat with their friend instead. You might make progress - but it's not gonna be as fast.