on ‎2020 Apr 20 7:11 AM
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?
Request clarification before answering.
| User | Count |
|---|---|
| 13 | |
| 8 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.