Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2012 Forums
 Transact-SQL (2012)
 Linked Server Performance Issue

Author  Topic 

sql_chaser
Starting Member

33 Posts

Posted - 2015-03-11 : 15:11:17
We are pulling data across the server through VPN tunnel by using Linked Server.The query that runs on the 30 seconds is taking 3 Minutes to run through the linked server. Few changes were done to bring it to 3 minutes.
1) Changed to OpenQuery
2) Validated the Indexes

-- Is there anyway to force the Index by using Forceseek as some of the fields are not indexed...

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2015-03-11 : 15:16:01
Show us the query and statistics IO output.

Please note that running a query through a linked server is going to be slow.

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

ScottPletcher
Aged Yak Warrior

550 Posts

Posted - 2015-03-12 : 12:11:54
Create a stored proc on the remote server, and just exec the procedure rather than passing the query over.
Go to Top of Page
   

- Advertisement -