<?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: Unable to establish connection from SAS to SQL servers using windows authentication in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-establish-connection-from-SAS-to-SQL-servers-using/m-p/608122#M17633</link>
    <description>&lt;P&gt;This isn't a SAS problem. I suggest you check Microsoft forums.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Nov 2019 19:26:06 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2019-11-28T19:26:06Z</dc:date>
    <item>
      <title>Unable to establish connection from SAS to SQL servers using windows authentication</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-establish-connection-from-SAS-to-SQL-servers-using/m-p/608075#M17618</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the first time we're trying to establish connection from SAS to SQL servers using windows authentication and unable to make it possible and would required help to fix this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; we added the db entries in odbc.ini file as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;DSN=Microsoft ODBC Driver 13 for SQL Server&lt;BR /&gt;[DSN]&lt;BR /&gt;Description=Microsoft ODBC Driver 13 for SQL Server&lt;BR /&gt;Driver=/opt/microsoft/msodbcsql/lib64/libmsodbcsql-13.0.so.1.0&lt;BR /&gt;ApplicationIntent=ReadOnly&lt;BR /&gt;Database=XXXXXXXX&lt;BR /&gt;MultiSubnetFailover=Yes&lt;BR /&gt;Server=TCP:server.domain.com,1433&lt;BR /&gt;AuthenticationMethod=9&lt;BR /&gt;Domain=XXXXX&lt;BR /&gt;Trusted_Connection=yes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. And initially tried to connect outside of SAS using 'isql' command (isql -v DSN User Password) and we get the below error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; [S1000][unixODBC][Microsoft][ODBC Driver 13 for SQL Server]SSPI Provider: Credentials cache file '/tmp/krb5cc_9177' not found&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; [S1000][unixODBC][Microsoft][ODBC Driver 13 for SQL Server]Cannot generate SSPI context&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly suggest us how to fix this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 15:46:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unable-to-establish-connection-from-SAS-to-SQL-servers-using/m-p/608075#M17618</guid>
      <dc:creator>Purushotham11</dc:creator>
      <dc:date>2019-11-28T15:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to establish connection from SAS to SQL servers using windows authentication</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-establish-connection-from-SAS-to-SQL-servers-using/m-p/608079#M17620</link>
      <description>&lt;P&gt;have you created an ODBC connection to the SQL server that works?&lt;/P&gt;
&lt;P&gt;After you have an ODBC connection you can use a libname assignment in SAS to make the connection to the SQL server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 15:56:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unable-to-establish-connection-from-SAS-to-SQL-servers-using/m-p/608079#M17620</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-11-28T15:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to establish connection from SAS to SQL servers using windows authentication</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-establish-connection-from-SAS-to-SQL-servers-using/m-p/608122#M17633</link>
      <description>&lt;P&gt;This isn't a SAS problem. I suggest you check Microsoft forums.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 19:26:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unable-to-establish-connection-from-SAS-to-SQL-servers-using/m-p/608122#M17633</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-11-28T19:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to establish connection from SAS to SQL servers using windows authentication</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-establish-connection-from-SAS-to-SQL-servers-using/m-p/608177#M17640</link>
      <description>&lt;P&gt;Hello,&amp;nbsp; Thanks for the reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We just want to clarify one more thing here.&lt;/P&gt;&lt;P&gt;Earlier we had added the entries in odbc.ini file as like below and were able to connect SQL servers using sql authentication.&lt;/P&gt;&lt;P&gt;Now we're trying to connect to new SQL servers with Windows authentication. So wanted to make sure whether the below odbc entrie would work for windows authentication as well or need to add entries in any other format?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;DSN=Microsoft ODBC Driver 13 for SQL Server&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[DSN]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Description=Microsoft ODBC Driver 13 for SQL Server&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Driver=/opt/microsoft/msodbcsql/lib64/libmsodbcsql-13.0.so.1.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ApplicationIntent=ReadOnly&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Database=XXXXXXXX&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MultiSubnetFailover=Yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Server=TCP:server.domain.com,1433&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AuthenticationMethod=9&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Domain=XXXXX&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Trusted_Connection=yes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 07:11:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unable-to-establish-connection-from-SAS-to-SQL-servers-using/m-p/608177#M17640</guid>
      <dc:creator>Purushotham11</dc:creator>
      <dc:date>2019-11-29T07:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to establish connection from SAS to SQL servers using windows authentication</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-establish-connection-from-SAS-to-SQL-servers-using/m-p/608179#M17641</link>
      <description>&lt;P&gt;Have you tried it? I know this approach works fine on Windows OS, not so sure regarding Unix.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 07:24:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unable-to-establish-connection-from-SAS-to-SQL-servers-using/m-p/608179#M17641</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-11-29T07:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to establish connection from SAS to SQL servers using windows authentication</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-establish-connection-from-SAS-to-SQL-servers-using/m-p/608180#M17642</link>
      <description>&lt;P&gt;We're using SAS on Unix OS only but the thing is will that entry works to connect SQL server using windows authentication (Domain\Username)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I've put the entry in this format only but when we run the libname we get the below error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname test odbc user="XXXXX\XXXXXX" password='XXXXXXXXXXXXXXX' datasrc="test" schema=XXXXXXXXX;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: CLI error trying to establish connection: [unixODBC][Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Login failed for&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;user 'XXXXXX'.&lt;/P&gt;&lt;P&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you confirm if the same entry format works for windows authentication?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 07:36:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unable-to-establish-connection-from-SAS-to-SQL-servers-using/m-p/608180#M17642</guid>
      <dc:creator>Purushotham11</dc:creator>
      <dc:date>2019-11-29T07:36:45Z</dc:date>
    </item>
  </channel>
</rss>

