SQL Anywhere Remote server connection to SQL Server
NickName:Ove Halseth Ask DateTime:2020-04-17T19:28:39

SQL Anywhere Remote server connection to SQL Server

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

Have installed SQL Server driver: https://learn.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-ver15#ubuntu17

Have tested connection to SQL Server with sqlcmd.

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

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:

Connection failed.
Unable to connect to 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 ) ORDER BY 1

I have not found any examples on how to use a driver other than Sybase. Anyone had any luck with proxytables against SQL Server?

Copyright Notice:Content Author:「Ove Halseth」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/61270559/sql-anywhere-remote-server-connection-to-sql-server

More about “SQL Anywhere Remote server connection to SQL Server” related questions

SQL Anywhere Remote server connection to SQL Server

I'm trying to link tables from MS SQL Server(on Windows) to SQL Anywhere(on Linux) Have installed SQL Server driver: https://learn.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-mic...

Show Detail

Sql server 2000 remote connection

Hi i want to know how to enable remote server connection in sql server 2000. I have sql server 2000 installed in a system with windows server 2003 os. i want to create a dsn connection to the datab...

Show Detail

Allow SQL Server Remote Connection

I need to connect to remote SQL Server by an ip address with a port. But when I ping to the ip address then that reply as well. But when I try to establish the connection that failed. I tried with

Show Detail

Troubleshooting Connection to Remote Sql Server

I have a bit of a strange situation and I'm not sure if I should be posting here or on serverfault. I have a Wildfly application server running on a linux virtualbox on my local machine. The local

Show Detail

SQL Server Remote Connection

I have configurated SQL Server 2012 Express like MSDN and other people says. But I cant make connection from outside of local network. So I can connect like this: 192.168.0.101/SQLEXPRESS, but

Show Detail

remote connection problem to sql server 2008

I'm having a problem making a remote connection to SQL Server 2008 on Windows Server 2008. There must be a simple step I'm missing somewhere, so if anyone can determine what it is, I would really

Show Detail

Connection string to remote sql server

I have a web application - that I open in VS and run successfully on my PC. On a new netbook, I have installed VS 2008 Professional with SP1 and turned on IIS features. Using the exact same soluti...

Show Detail

SQL Server Express - Remote Connection continues to fail

I have been unable to configure my SQL Server 2008 Express to allow remote connections. I followed the instructions from this guide: http://www.linglom.com/2009/03/28/enable-remote-connection-on-sql-

Show Detail

SQL Server connection string to a remote server

I have a remote SQL Server Express (2008 R2) with an IP: xx.xxx.xxx.xx and an instance name: myInstance. I have been trying to connect to a DB (myDB) as user (dbUser) and with password (myPass). ...

Show Detail

Remote Sql Server connection with MSSMS

I am trying to connect to a remote sql server. I write the IP a.b.c.d into a server name, then I put username test and password test. This account has all Server Roles selected (I also tried with a...

Show Detail