cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SQL Anywhere Remote server connection to SQL Server

ovehalseth-1
Explorer
0 Likes
1,174

I'm trying to link tables from MS SQL Server(on Windows) to SQL Anywhere(on Linux)

Have installed SQL Server driver: https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for...

Have tested connection to SQL Server with sqlcmd and isql and both connects fine.

In SQL Anywhere I have made a Remote Server with this query:

<code>CREATE SERVER "lnkIS" CLASS 'MSSODBC'USING'host=xxx.xxx.xxx.xxx;port=nnnn;driver=/opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.5.so.2.1;uid=wis;pwd=xxx;eng=WisData';

But when I test the connection I get:

<code>Connection failed.
Unable toconnectto server 'lnkIS':[Sybase][ODBC Driver Manager] Unable to load driver /opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.5.so.2.1[Sybase][ODBC Driver][SQL Anywhere]Unable to connect to server 'lnkIS':[Sybase][ODBC Driver Manager] Unable to load driver /opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.5.so.2.1
SQLCODE:-656
SQLSTATE: HY000
SQL Statement:SELECT FIRST table_name FROM dbo.sp_remote_tables('lnkIS',NULL,NULL,NULL,1)ORDERBY1

I have not found any examples on how to use a driver other than Sybase. Can anyone give an example on how to connect to MS SQL Server?

Accepted Solutions (0)

Answers (0)