dbTalk Databases Forums  

AddLinkServer slow...

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss AddLinkServer slow... in the microsoft.public.sqlserver.clients forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rogers
 
Posts: n/a

Default AddLinkServer slow... - 04-02-2009 , 09:27 AM






Quick Question,

I am running following query from my two different Server. Both have linked
server to one of production server.

Server1.

Select top 1000 * from myLinkServer.MyDB.dbo.MyTable.

Takes 15 seconds

Server 2

Select top 1000 * from myLinkServer.MyDB.dbo.MyTable.

Takes 2 minutes

both servers configuration are same.
both servers temp db size are same.
both servers memory assign to SQL Server are same.
LAN card are same.
No variation in internet.

Any idea? Or any hint.


Reply With Quote
  #2  
Old   
SQL Squirrel
 
Posts: n/a

Default Re: AddLinkServer slow... - 04-02-2009 , 04:59 PM






Well.. 2 questions I would have to beg are:
1. Does the MyTable in each server have the same number of rows?
2. Instead of specifying * try specifying the column names that you want to
retrieve.
Have you tried doing that? I would be curious to see if the rows were
returned
any faster.

SQL Squirrel
http://www.lockergnome.com/sqlsquirrel/

"Rogers" <Rogers (AT) discussions (DOT) microsoft.com> wrote

Quote:
Quick Question,

I am running following query from my two different Server. Both have
linked
server to one of production server.

Server1.

Select top 1000 * from myLinkServer.MyDB.dbo.MyTable.

Takes 15 seconds

Server 2

Select top 1000 * from myLinkServer.MyDB.dbo.MyTable.

Takes 2 minutes

both servers configuration are same.
both servers temp db size are same.
both servers memory assign to SQL Server are same.
LAN card are same.
No variation in internet.

Any idea? Or any hint.




Reply With Quote
  #3  
Old   
Noor
 
Posts: n/a

Default Re: AddLinkServer slow... - 04-06-2009 , 07:17 PM



1. Does the MyTable in each server have the same number of rows?

YES

2. Instead of specifying * try specifying the column names that you want to
retrieve.

My main concern is when I run the query from Server2 , howcome it's fast?

Thanks



"SQL Squirrel" <brett.sqldba (AT) gmail (DOT) com> wrote

Quote:
Well.. 2 questions I would have to beg are:
1. Does the MyTable in each server have the same number of rows?
2. Instead of specifying * try specifying the column names that you want
to retrieve.
Have you tried doing that? I would be curious to see if the rows were
returned
any faster.

SQL Squirrel
http://www.lockergnome.com/sqlsquirrel/

"Rogers" <Rogers (AT) discussions (DOT) microsoft.com> wrote in message
news:350EDD7A-FEE0-44FB-83B5-D512B2CA4DB7 (AT) microsoft (DOT) com...
Quick Question,

I am running following query from my two different Server. Both have
linked
server to one of production server.

Server1.

Select top 1000 * from myLinkServer.MyDB.dbo.MyTable.

Takes 15 seconds

Server 2

Select top 1000 * from myLinkServer.MyDB.dbo.MyTable.

Takes 2 minutes

both servers configuration are same.
both servers temp db size are same.
both servers memory assign to SQL Server are same.
LAN card are same.
No variation in internet.

Any idea? Or any hint.






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.