1

When I execute query like this

select * from openquery(XYZ, 'select * from patient')

I create the linked server in the SQL server 2005 and connect with the MYSQL and when I execute query and display errors like..

OLE DB provider "SQLNCLI" for linked server "XYZ" returned message "Login timeout expired".

OLE DB provider "SQLNCLI" for linked server "XYZ" 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 53, Level 16, State 1, Line 0 Named Pipes Provider: Could not open a connection to SQL Server [53].

1 Answer 1

2

http://blog.sqlauthority.com/2009/05/21/sql-server-fix-error-provider-named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server-microsoft-sql-server-error/

i think this will help you...

Sign up to request clarification or add additional context in comments.

1 Comment

in addition to this add the port of MySql in Firewall Exception. hope this will work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.