I am querying a MySQL related server from SQL Server.
I can query the linked server using OpenQuery, as in the following example.
SELECT * FROM OPENQUERY(MyLinkedServer, 'SELECT * FROM SomeTable')
I tried to query the linked server using a four-part name, as in the following example.
SELECT * FROM MyLinkedServer.MyDatabase.DBO.SomeTable
This returns an error stating that "the provider does not provide the necessary interfaces for using the directory or schema."
Is there a way to query a linked server without using OpenQuery?
Thanks!
Update: to the answer "Schroeder" the correct syntax is as follows.
SELECT * FROM MyLinkedServer...SomeTable
source share