I created a linkedserver from SQL Server 2016 to Filemaker database on another server. ODBC driver version in 19.xx.
Using the ODBC driver and DSN, I can see the data from the Filemaker database using Excel or PowerBI.
However I am unable to query the Filemaker from SQL Server using linkedserver.
But whenever I try to run a query I get the error shown here. I tried many things and still can't figure out.
Has anybody else encountered this error?
I tried different versions of odbc drivers and tried to query using different syntax, such as openquery, openrowset etc, without any success
Finally I found the solution to the problem, using the following steps.
...
select * from openquery([linkedserver],' select col1, col2, col3 from tablename')
This worked. please make sure to specify the column names inside the openquery. hope it helps