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 Error Expand / Collapse
Author
Message
Posted Saturday, January 22, 2011 10:24 PM


SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, April 4, 2011 7:07 AM
Points: 28, Visits: 53
Hi i am getting the below error pls help

"OLE DB provider "SQLNCLI" for linked server "Servertest" returned message "Login timeout expired".
OLE DB provider "SQLNCLI" for linked server "Servertest" returned message "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.".
Msg 5, Level 16, State 1, Line 0
Named Pipes Provider: Could not open a connection to SQL Server [5]".


NEVER NEVER EVER GIVE UP
Post #1052024
Posted Monday, January 24, 2011 1:22 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, January 27, 2011 8:30 AM
Points: 1, Visits: 10
What are you doing when you get this error?
Post #1052215
Posted Monday, January 24, 2011 10:48 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Monday, August 11, 2014 7:00 AM
Points: 1,744, Visits: 1,323
Have you verified what the error message is telling you? - When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.".
Msg 5, Level 16, State 1, Line 0
Named Pipes Provider: Could not open a connection to SQL Server [5]".


Under the SQL Server Properties | Connections | Is "Allow remote connections to this server" checked? If so, what is the "Remote query timeout" set to an extremely low time? Sometimes it is best to set it to zero.

Also, is "Named Pipes" enabled as a connection type?


Chris Powell

George: You're kidding.
Elroy: Nope.
George: Then lie to me and say you're kidding.
Post #1052562
Posted Monday, January 24, 2011 11:39 PM


SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, April 4, 2011 7:07 AM
Points: 28, Visits: 53
i am executing the daily scripts
and the main thing is that if i run the scripts after 5 minutes it works.

But the next day i am getting the same error again and some times the error doesn't come and everthing works smoothly

OLE DB provider "SQLNCLI" for linked server "ServerTest" returned message "Login timeout expired".
OLE DB provider "SQLNCLI" for linked server "ServerTest" returned message "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.".
Msg 5, Level 16, State 1, Line 0
Named Pipes Provider: Could not open a connection to SQL Server [5].


NEVER NEVER EVER GIVE UP
Post #1052880
Posted Wednesday, January 26, 2011 5:46 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Today @ 7:01 AM
Points: 914, Visits: 1,431
try adding the sql port to your linked server connection.




Post #1053806
Posted Tuesday, June 21, 2011 5:24 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Monday, August 11, 2014 9:10 AM
Points: 64, Visits: 248
even after setting remote connection to 0, im getting same error
Post #1128895
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse