Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Linked Server Query Timeout


Linked Server Query Timeout

Author
Message
Shriji
Shriji
Valued Member
Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)

Group: General Forum Members
Points: 65 Visits: 318
Hi,

I am running a script to bring in data from our SourceServer (SS2008) to our DestServer (SS2005). SourceServer was SS2005, we had no issues even with timeout set to 600. With SS2008, the same script is timing out well before 600 timeout setting. To be on safer side, I changed the timeout setting from 600 (10 minutes) to 0 (unlimited). Following is the error message:

OLE DB provider "SQLNCLI" for linked server "SourceServer" returned message "Query timeout expired".
Msg 7330, Level 16, State 2, Line 1
Cannot fetch a row from OLE DB provider "SQLNCLI" for linked server "SourceServer".


Any Idea??

Thanks for your help.
Shriji
SKYBVI
SKYBVI
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1233 Visits: 3239
how are you importing the data?
using SSIS or what?
SKYBVI
SKYBVI
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1233 Visits: 3239
you changed the timeout setting on whcih server- source or the destination?


Regards,
Sushant
Shriji
Shriji
Valued Member
Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)

Group: General Forum Members
Points: 65 Visits: 318
Thank you guys. it is fixed!!!

We are importing data as "Select * into....." through sql script which we run in SSIS. For remote server properties, connection timeout and query time out was set to 0 by default. I did google found out that connection timeout 0 means 20 secs (i dont know it is true or not) but I followed it and changed it to 3600 and query time to 7200. it solved the issue.

I came to know one more thing that Remote Query Timeout setting a server level actually is for outgoing connection and it has NO impact on incoming connection. I was mistakenly tyring to configure the "SourceServer". Then after the research, I changed the settings under remote connection properties of the "DestinationServer".

Thanks
Shriji
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search