Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Linked Server Query Timeout Expand / Collapse
Author
Message
Posted Thursday, January 6, 2011 12:49 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Tuesday, June 18, 2013 6:35 AM
Points: 65, Visits: 312
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
Post #1044000
Posted Thursday, January 6, 2011 1:52 PM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, June 10, 2014 6:14 AM
Points: 1,200, Visits: 3,237
how are you importing the data?
using SSIS or what?

Post #1044017
Posted Thursday, January 6, 2011 1:56 PM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, June 10, 2014 6:14 AM
Points: 1,200, Visits: 3,237
you changed the timeout setting on whcih server- source or the destination?


Regards,
Sushant
Post #1044021
Posted Thursday, January 6, 2011 2:24 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Tuesday, June 18, 2013 6:35 AM
Points: 65, Visits: 312
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
Post #1044040
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse