<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: SQL Anywhere Remote server connection to SQL Server in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sql-anywhere-remote-server-connection-to-sql-server/qaa-p/12204397#M4566699</link>
    <description>&lt;P&gt;SQL Anywhere has no specific experience with or testing of SQL Server ODBC on non Windows platforms.  While we have no specific experience, we had worked with an environment that was able to successfully resolve connectivity as described below and using a DSN that was defined:&lt;/P&gt;&lt;P&gt;1. Configure unixODBC (which is part of recommended setup discussed in the MSS documentation):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;export LD_PRELOAD=/lib64/libcrypto.so.1.0.0&lt;BR /&gt;export ODBCINI=/etc/unixODBC/odbc.ini&lt;BR /&gt;export ODBCINST=/etc/unixODBC/odbcinst.ini&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;2. Create the following symbolic links (as per SAP note 1644499) - you may need to confirm the specific symbolic link references for your environment:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ln -s /usr/lib64/libodbc.so.2.0.0 /usr/lib64/libodbc.so.1
ln -s /usr/lib64/libodbcinst.so.2.0.0 /usr/lib64/libodbcinst.so.1&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;3. Add the driver and create a DSN by modifying the odbc.ini and odbcinst.ini files as in this example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;/etc/unixODBC/odbc.ini&lt;BR /&gt;[&amp;lt;your_dsn_name&amp;gt;]&lt;BR /&gt;Driver = ODBC Driver 17 for SQL Server&lt;BR /&gt;Description = &amp;lt;DSN Description&amp;gt;&lt;BR /&gt;Server = &amp;lt;server_ip&amp;gt;&lt;BR /&gt;Port = &amp;lt;port&amp;gt;&lt;BR /&gt;Database = &amp;lt;database&amp;gt;
/etc/unixODBC/odbcinst.ini&lt;BR /&gt;[ODBC Driver 17 for SQL Server]&lt;BR /&gt;Description=Microsoft ODBC Driver 17 for SQL Server&lt;BR /&gt;Driver=/opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.2.so.0.1&lt;BR /&gt;UsageCount=1&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 21 Apr 2020 18:09:26 GMT</pubDate>
    <dc:creator>chris_keating</dc:creator>
    <dc:date>2020-04-21T18:09:26Z</dc:date>
    <item>
      <title>SQL Anywhere Remote server connection to SQL Server</title>
      <link>https://community.sap.com/t5/technology-q-a/sql-anywhere-remote-server-connection-to-sql-server/qaq-p/12204396</link>
      <description>&lt;P&gt;I'm trying to link tables from MS SQL Server(on Windows) to SQL Anywhere(on Linux)&lt;/P&gt;
  &lt;P&gt;Have installed SQL Server driver: &lt;A href="https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-ver15#ubuntu17"&gt;https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-ver15#ubuntu17&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Have tested connection to SQL Server with sqlcmd and isql and both connects fine.&lt;/P&gt;
  &lt;P&gt;In SQL Anywhere I have made a Remote Server with this query:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;&amp;lt;code&amp;gt;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';&lt;/CODE&gt;&lt;/PRE&gt; 
  &lt;P&gt;But when I test the connection I get:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;&amp;lt;code&amp;gt;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&lt;/CODE&gt;&lt;/PRE&gt; 
  &lt;P&gt;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?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 06:11:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sql-anywhere-remote-server-connection-to-sql-server/qaq-p/12204396</guid>
      <dc:creator>ovehalseth-1</dc:creator>
      <dc:date>2020-04-20T06:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Anywhere Remote server connection to SQL Server</title>
      <link>https://community.sap.com/t5/technology-q-a/sql-anywhere-remote-server-connection-to-sql-server/qaa-p/12204397#M4566699</link>
      <description>&lt;P&gt;SQL Anywhere has no specific experience with or testing of SQL Server ODBC on non Windows platforms.  While we have no specific experience, we had worked with an environment that was able to successfully resolve connectivity as described below and using a DSN that was defined:&lt;/P&gt;&lt;P&gt;1. Configure unixODBC (which is part of recommended setup discussed in the MSS documentation):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;export LD_PRELOAD=/lib64/libcrypto.so.1.0.0&lt;BR /&gt;export ODBCINI=/etc/unixODBC/odbc.ini&lt;BR /&gt;export ODBCINST=/etc/unixODBC/odbcinst.ini&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;2. Create the following symbolic links (as per SAP note 1644499) - you may need to confirm the specific symbolic link references for your environment:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ln -s /usr/lib64/libodbc.so.2.0.0 /usr/lib64/libodbc.so.1
ln -s /usr/lib64/libodbcinst.so.2.0.0 /usr/lib64/libodbcinst.so.1&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;3. Add the driver and create a DSN by modifying the odbc.ini and odbcinst.ini files as in this example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;/etc/unixODBC/odbc.ini&lt;BR /&gt;[&amp;lt;your_dsn_name&amp;gt;]&lt;BR /&gt;Driver = ODBC Driver 17 for SQL Server&lt;BR /&gt;Description = &amp;lt;DSN Description&amp;gt;&lt;BR /&gt;Server = &amp;lt;server_ip&amp;gt;&lt;BR /&gt;Port = &amp;lt;port&amp;gt;&lt;BR /&gt;Database = &amp;lt;database&amp;gt;
/etc/unixODBC/odbcinst.ini&lt;BR /&gt;[ODBC Driver 17 for SQL Server]&lt;BR /&gt;Description=Microsoft ODBC Driver 17 for SQL Server&lt;BR /&gt;Driver=/opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.2.so.0.1&lt;BR /&gt;UsageCount=1&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Apr 2020 18:09:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sql-anywhere-remote-server-connection-to-sql-server/qaa-p/12204397#M4566699</guid>
      <dc:creator>chris_keating</dc:creator>
      <dc:date>2020-04-21T18:09:26Z</dc:date>
    </item>
  </channel>
</rss>

