问题
I want to create a linked server between SQL Server and a MySQL instance. I followed the steps outlined in this tutorial but it's not working. I've recorded a video of the process I am using to create the server:
http://www.youtube.com/watch?v=-8psvDjysHk&feature=youtu.be
SQL server return this error:
The linked server has been created but failed a connection test. Do you want to keep the linked server?
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
The OLE DB provider "SQLNCLI10" for linked server "MYSQLAPP" reported an error. Authentication failed.
Cannot initialize the data source object of OLE DB provider "SQLNCLI10" for linked server "MYSQLAPP".
OLE DB provider "SQLNCLI10" for linked server "MYSQLAPP" returned message "Invalid authorization specification". (Microsoft SQL Server, Error: 7399)
回答1:
You need to create a SYSTEM DSN on the SQL Server machine but in your video you create a USER DSN. Select the System tab in the ODBC applet before you create the DSN.
来源:https://stackoverflow.com/questions/14184429/cant-create-linked-server-sql-server-and-mysql