<?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: using freetds drivers in ODBC connections w/ SAS on linux in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/using-freetds-drivers-in-ODBC-connections-w-SAS-on-linux/m-p/680330#M19507</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/343748"&gt;@daniel12345&lt;/a&gt;&amp;nbsp; - I think you are on the money if DSN-less connection strings work, and you are thinking something needs to be added to odbc.ini.Not an area I've had experience with unfortunately. Someone with linux experience needs to chip in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: I've moved your post to Data Management to be more on topic. Experts like&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13871"&gt;@DBailey&lt;/a&gt;&amp;nbsp;may be able to help.&lt;/P&gt;</description>
    <pubDate>Mon, 31 Aug 2020 00:28:53 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2020-08-31T00:28:53Z</dc:date>
    <item>
      <title>using freetds drivers in ODBC connections w/ SAS on linux</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/using-freetds-drivers-in-ODBC-connections-w-SAS-on-linux/m-p/680060#M19503</link>
      <description>&lt;P&gt;I am trying to use freetds drivers to connect to sqlserver using ODBC in SAS (on linux).&amp;nbsp; Outside of SAS, the connections work, but inside of SAS, the connections do not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In SAS, I cannot get past a simple libname statement at the command-line:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname mylib odbc dsn=SQLEDT_FREETDS user=myuser password=mypass;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My output:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[me@machine 9.4]$ ./sas -nodms
NOTE: Copyright (c) 2016 by SAS Institute Inc., Cary, NC, USA.
NOTE: SAS (r) Proprietary Software 9.4 (TS1M6)
NOTE: This session is executing on the Linux 4.18.0-193.6.3.el8_2.x86_64 (LIN
      X64) platform.
NOTE: Analytical products:

      SAS/STAT 15.1
      SAS/ETS 15.1
      SAS/IML 15.1
      SAS/QC 15.1
NOTE: Additional host information:
 Linux LIN X64 4.18.0-193.6.3.el8_2.x86_64 #1 SMP Mon Jun 1 20:24:55 UTC 2020
      x86_64 Red Hat Enterprise Linux release 8.2 (Ootpa)

  1? libname mylib odbc dsn=SQLEDT_FREETDS user=myuser password=mypass;

ERROR: CLI error trying to establish connection: [unixODBC][FreeTDS][SQL
       Server]Unable to connect: Adaptive Server is unavailable or does not
       exist : [unixODBC][FreeTDS][SQL Server]Unable to connect to data
       source : [unixODBC][FreeTDS][SQL Server]Unknown host machine name.
ERROR: Error in the LIBNAME statement.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With that being said, freetds appears to work outside of SAS just fine:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[me@machine 9.4]$ isql -v SQLEDT_FREETDS "myuser" "mypass"
+---------------------------------------+
| Connected!                            |
|                                       |
| sql-statement                         |
| help [tablename]                      |
| quit                                  |
|                                       |
+---------------------------------------+
SQL&amp;gt; quit
[me@machine 9.4]$ tsql -S SQLEDT_FREETDS -U myuser -P mypass
locale is "en_US.UTF-8"
locale charset is "UTF-8"
using default charset "UTF-8"
1&amp;gt; quit&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My ODBC DSN is very simple:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;My DSN is very simple:
[SQLEDT_FREETDS]
Driver=FreeTDS
Server=10.10.10.128
Port=1433&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Is this DSN connection definition too simple? Am I missing something that SAS needs that other tools don't need?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this particular case, the username/pass corresponds to a local sqlserver-auth account (I have an interest in getting an AD-based account working too, but I can't seem to get a simple account to work)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice is appreciated; I am not sure what my next steps would be.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 17:36:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/using-freetds-drivers-in-ODBC-connections-w-SAS-on-linux/m-p/680060#M19503</guid>
      <dc:creator>daniel12345</dc:creator>
      <dc:date>2020-08-28T17:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: using freetds drivers in ODBC connections w/ SAS on linux</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/using-freetds-drivers-in-ODBC-connections-w-SAS-on-linux/m-p/680254#M19504</link>
      <description>&lt;P&gt;Have SAS ODBC connections to SQL Server ever worked on this server, perhaps with other ODBC drivers, or is this a first-time setup?&lt;/P&gt;</description>
      <pubDate>Sat, 29 Aug 2020 23:24:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/using-freetds-drivers-in-ODBC-connections-w-SAS-on-linux/m-p/680254#M19504</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-08-29T23:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: using freetds drivers in ODBC connections w/ SAS on linux</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/using-freetds-drivers-in-ODBC-connections-w-SAS-on-linux/m-p/680326#M19505</link>
      <description>&lt;P&gt;This is a new SAS server so it's the first time set-up we're going through.&amp;nbsp; With that being said, SAS ODBC connections to the same SQLserver appear to work for people that use SAS on Windows, so I think it's localized to me and my linux server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I verified my DSN works by using it in other places (isql/tsql and R),&amp;nbsp; so I think it might be something related to my SAS syntax or something SAS needs in my odbc.ini that I am missing if connecting from linux.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried entering more information in my odbc.ini:&lt;/P&gt;&lt;PRE&gt;[SQLEDT_FREETDS]
Driver=FreeTDS
Description=FreeTDS testing
Trace=No
Database=mydatabase
Server=10.10.10.128
Port=1433
TDS Version = 8.0&lt;/PRE&gt;&lt;P&gt;but this didn't seem to make an impact.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply - any thoughts on next steps would be appreciated!&lt;/P&gt;</description>
      <pubDate>Sun, 30 Aug 2020 17:23:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/using-freetds-drivers-in-ODBC-connections-w-SAS-on-linux/m-p/680326#M19505</guid>
      <dc:creator>daniel12345</dc:creator>
      <dc:date>2020-08-30T17:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: using freetds drivers in ODBC connections w/ SAS on linux</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/using-freetds-drivers-in-ODBC-connections-w-SAS-on-linux/m-p/680329#M19506</link>
      <description>&lt;P&gt;A small update: I can get a DSN-less connection working to our SQL server with this syntax:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME mylibref ODBC NOPROMPT="driver={FreeTDS};Server=10.10.10.128;port=1433;database=mydatabase;uid=myuser;pwd=mypassword"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So I think there's something weird with SAS + my DSN or my syntax for trying to use the DSN:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname mylib odbc dsn=SQLEDT_FREETDS user="myuser" password="mypassword";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Does SAS need something outside /etc/odbc.ini for this to work?&lt;/P&gt;</description>
      <pubDate>Sun, 30 Aug 2020 18:54:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/using-freetds-drivers-in-ODBC-connections-w-SAS-on-linux/m-p/680329#M19506</guid>
      <dc:creator>daniel12345</dc:creator>
      <dc:date>2020-08-30T18:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: using freetds drivers in ODBC connections w/ SAS on linux</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/using-freetds-drivers-in-ODBC-connections-w-SAS-on-linux/m-p/680330#M19507</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/343748"&gt;@daniel12345&lt;/a&gt;&amp;nbsp; - I think you are on the money if DSN-less connection strings work, and you are thinking something needs to be added to odbc.ini.Not an area I've had experience with unfortunately. Someone with linux experience needs to chip in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: I've moved your post to Data Management to be more on topic. Experts like&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13871"&gt;@DBailey&lt;/a&gt;&amp;nbsp;may be able to help.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2020 00:28:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/using-freetds-drivers-in-ODBC-connections-w-SAS-on-linux/m-p/680330#M19507</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-08-31T00:28:53Z</dc:date>
    </item>
  </channel>
</rss>

