<?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>topic Re: Error establishing a connection to SQL Server in SAS Viya 3.4 in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Error-establishing-a-connection-to-SQL-Server-in-SAS-Viya-3-4/m-p/515282#M65</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think this is a known compatibility issue of MS SQL Server and Unix ODBC.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Nov 2018 04:57:02 GMT</pubDate>
    <dc:creator>chuan</dc:creator>
    <dc:date>2018-11-22T04:57:02Z</dc:date>
    <item>
      <title>Error establishing a connection to SQL Server in SAS Viya 3.4</title>
      <link>https://communities.sas.com/t5/Developers/Error-establishing-a-connection-to-SQL-Server-in-SAS-Viya-3-4/m-p/507069#M59</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying to establish a connection to MS SQL Server 2014 in SAS Studio Release 4.4 (for SAS Viya 3.4) but encountered the following errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;74&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libname mslib odbc dsn="MyMSSQLServer" user="DataHub" password=XXXXXXXXXX;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;ERROR: CLI error trying to establish connection: [unixODBC][Microsoft][ODBC Driver 13 for SQL Server]Login timeout expired : &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [unixODBC][Microsoft][ODBC Driver 13 for SQL Server]TCP Provider: Error code 0x102 : [unixODBC][Microsoft][ODBC Driver 13 &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for SQL Server]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; connections. For more information see SQL Server Books Online.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;ERROR: Error in the LIBNAME statement.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;75&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;76&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I crosscheck by creating a ODBC connection to the same SQL Server on my desktop and the connection is tested successfully.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp; would appreciate any pointer or advice on how to resolve this error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI, the followings are the content of the .ini files:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[root@SASVIYA34 ~]# cat &lt;STRONG&gt;/opt/sas/spre/home/lib64/accessclients/odbcinst.ini&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[PostgreSQL]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Description=ODBC for PostgreSQL&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Driver=/usr/lib/psqlodbcw.so&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Setup=/usr/lib/libodbcpsqlS.so&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Driver64=/usr/lib64/psqlodbcw.so&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Setup64=/usr/lib64/libodbcpsqlS.so&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;FileUsage=1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[MySQL]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Description=ODBC for MySQL&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Driver=/usr/lib/libmyodbc5.so&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Setup=/usr/lib/libodbcmyS.so&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Driver64=/usr/lib64/libmyodbc5.so&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Setup64=/usr/lib64/libodbcmyS.so&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;FileUsage=1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[ODBC Driver 13 for SQL Server]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Description=Microsoft ODBC Driver 13 for SQL Server&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Driver=/opt/microsoft/msodbcsql/lib64/libmsodbcsql-13.1.so.9.2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;UsageCount=1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[root@SASVIYA34 ~]# cat &lt;STRONG&gt;/opt/sas/spre/home/lib64/accessclients/odbc.ini&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[MyMSSQLServer]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Driver=ODBC Driver 13 for SQL Server&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Description=My MS SQL Server&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Trace=No&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Server=192.168.1.111&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 07:41:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Error-establishing-a-connection-to-SQL-Server-in-SAS-Viya-3-4/m-p/507069#M59</guid>
      <dc:creator>S_S</dc:creator>
      <dc:date>2018-10-24T07:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error establishing a connection to SQL Server in SAS Viya 3.4</title>
      <link>https://communities.sas.com/t5/Developers/Error-establishing-a-connection-to-SQL-Server-in-SAS-Viya-3-4/m-p/507075#M60</link>
      <description>&lt;P&gt;The most likely explanation for the error is there is a firewall blocking the port the SAS app server is trying to communicate on. Talk to your SAS administrator regarding what firewall port rules are defined and what rule needs changing to enable communication.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 08:08:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Error-establishing-a-connection-to-SQL-Server-in-SAS-Viya-3-4/m-p/507075#M60</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-10-24T08:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error establishing a connection to SQL Server in SAS Viya 3.4</title>
      <link>https://communities.sas.com/t5/Developers/Error-establishing-a-connection-to-SQL-Server-in-SAS-Viya-3-4/m-p/507077#M61</link>
      <description>&lt;P&gt;Hi&amp;nbsp; SAS Kiwi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have disabled the firewall and I am still getting the same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 08:15:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Error-establishing-a-connection-to-SQL-Server-in-SAS-Viya-3-4/m-p/507077#M61</guid>
      <dc:creator>S_S</dc:creator>
      <dc:date>2018-10-24T08:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error establishing a connection to SQL Server in SAS Viya 3.4</title>
      <link>https://communities.sas.com/t5/Developers/Error-establishing-a-connection-to-SQL-Server-in-SAS-Viya-3-4/m-p/507083#M62</link>
      <description>&lt;P&gt;Trying pinging the SQL server host name from your SAS app server. Does that work?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 09:05:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Error-establishing-a-connection-to-SQL-Server-in-SAS-Viya-3-4/m-p/507083#M62</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-10-24T09:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error establishing a connection to SQL Server in SAS Viya 3.4</title>
      <link>https://communities.sas.com/t5/Developers/Error-establishing-a-connection-to-SQL-Server-in-SAS-Viya-3-4/m-p/507084#M63</link>
      <description>&lt;P&gt;Hi SAS Kiwi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I can ping my SQL Server from my SAS Viya 3.4 Server. I also don't think there is a latency issue (see ping output below).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[root@SASVIYA34 lib64]# ping 192.168.1.111&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;PING 192.168.1.111 (192.168.1.111) 56(84) bytes of data.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;64 bytes from 192.168.1.111: icmp_seq=1 ttl=128 time=18.0 ms&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;64 bytes from 192.168.1.111: icmp_seq=2 ttl=128 time=38.6 ms&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;64 bytes from 192.168.1.111: icmp_seq=3 ttl=128 time=5.76 ms&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;64 bytes from 192.168.1.111: icmp_seq=4 ttl=128 time=38.3 ms&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;64 bytes from 192.168.1.111: icmp_seq=5 ttl=128 time=21.3 ms&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;64 bytes from 192.168.1.111: icmp_seq=6 ttl=128 time=15.8 ms&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;64 bytes from 192.168.1.111: icmp_seq=7 ttl=128 time=7.54 ms&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;64 bytes from 192.168.1.111: icmp_seq=8 ttl=128 time=22.9 ms&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;64 bytes from 192.168.1.111: icmp_seq=9 ttl=128 time=6.30 ms&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;--- 192.168.1.111 ping statistics ---&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;9 packets transmitted, 9 received, 0% packet loss, time 8013ms&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;rtt min/avg/max/mdev = 5.762/19.428/38.621/11.826 ms&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;EM&gt;.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 09:13:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Error-establishing-a-connection-to-SQL-Server-in-SAS-Viya-3-4/m-p/507084#M63</guid>
      <dc:creator>S_S</dc:creator>
      <dc:date>2018-10-24T09:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error establishing a connection to SQL Server in SAS Viya 3.4</title>
      <link>https://communities.sas.com/t5/Developers/Error-establishing-a-connection-to-SQL-Server-in-SAS-Viya-3-4/m-p/515269#M64</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/171920"&gt;@S_S&lt;/a&gt;&amp;nbsp;- Did you manage to fix this? If so what was the solution?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 02:04:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Error-establishing-a-connection-to-SQL-Server-in-SAS-Viya-3-4/m-p/515269#M64</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-11-22T02:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error establishing a connection to SQL Server in SAS Viya 3.4</title>
      <link>https://communities.sas.com/t5/Developers/Error-establishing-a-connection-to-SQL-Server-in-SAS-Viya-3-4/m-p/515282#M65</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think this is a known compatibility issue of MS SQL Server and Unix ODBC.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 04:57:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Error-establishing-a-connection-to-SQL-Server-in-SAS-Viya-3-4/m-p/515282#M65</guid>
      <dc:creator>chuan</dc:creator>
      <dc:date>2018-11-22T04:57:02Z</dc:date>
    </item>
  </channel>
</rss>

