I am trying to connect to Sphinx from SQL Server Management Studio as a Linked server. I tried the following query:
EXEC master.dbo.sp_addlinkedserver @server=N'SPHINX_SEARCH', @srvproduct=N'', @provider=N'MSDASQL', @provstr=N'Driver={MySQL ODBC 8.0 ANSI Driver};Server=127.0.0.1;Port=9306,charset=UTF8;User=;Password=;OPTION=3'
GO
EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'SPHINX', @useself=N'False',@locallogin=NULL,@rmtuser=NULL,@rmtpassword=NULL
GO
And i am getting the following exception:
Title: Microsoft SQL Server Management Studio
The test connection to the linked server failed.
Additional information
The OLE DB providcer "MSDASQL" for linked server "SPHINX_SEARCH" reported an error. The provider did not give any information about the error. Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "SPHINX_SEARCH". (Microsoft SQL Server, Error: 7399).
While connecting to Sphinx from MySQL is working via the following command:
mysql -h 127.0.0.1 -P 9306
Any suggestions?
Sphinx version: 3.0.3, SQL server version: 2014, MySQL version: 5.6