|
pcpham
Starting Member
Australia
10 Posts |
Posted - 06/04/2010 : 02:55:17
|
Hi Guys,
I have a remote server accessible via an IP address that I have registered in SQL Server Management. One table Contacts contain 100,000 records. My query
SELECT * FROM dbo.Contact WHERE (CrmPersonStatus = 16) OR (CrmPersonStatus = 17) OR (CrmPersonStatus = 19)
Takes 10-15 minutes to run.
If I run the same query using linked server
SELECT * FROM [xxx.xxx.xxx]xxx].Table1.dbo.Contact WHERE (CrmPersonStatus = 16) OR (CrmPersonStatus = 17) OR (CrmPersonStatus = 19)
It takes 30 seconds...
My question is why would it take that long for the first query?
Thanks,
Paula |
|