<?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: SAS Studio to MSSQL Database connection issue via ODBC driver in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-to-MSSQL-Database-connection-issue-via-ODBC-driver/m-p/985081#M30752</link>
    <description>&lt;P&gt;This got fix as you suggested, thanks for help.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Mar 2026 22:36:06 GMT</pubDate>
    <dc:creator>kumarsandip975</dc:creator>
    <dc:date>2026-03-20T22:36:06Z</dc:date>
    <item>
      <title>SAS Studio to MSSQL Database connection issue via ODBC driver</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-to-MSSQL-Database-connection-issue-via-ODBC-driver/m-p/984831#M30738</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt;Could you please help us to understand the root cause with the below error,&lt;/P&gt;
&lt;P&gt;Please note, we have this issues when we enabled Kerberos authentication to SAS Studio environment(running on windows with SAS 9.4 M8). It was working fine before Kerberos implementation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;73&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libname SQLXXX01 SQLSVR datasrc=SQLXXX01 schema=abc;&lt;/P&gt;
&lt;P&gt;ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Login failed for user 'NT&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AUTHORITY\ANONYMOUS LOGON'. : [Microsoft][ODBC Driver 17 for SQL Server]Invalid connection string attribute&lt;/P&gt;
&lt;P&gt;ERROR: Error in the LIBNAME statement.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2026 17:12:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-to-MSSQL-Database-connection-issue-via-ODBC-driver/m-p/984831#M30738</guid>
      <dc:creator>kumarsandip975</dc:creator>
      <dc:date>2026-03-16T17:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio to MSSQL Database connection issue via ODBC driver</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-to-MSSQL-Database-connection-issue-via-ODBC-driver/m-p/984835#M30739</link>
      <description>&lt;P&gt;Please check that your SQL Server is using NT authentication or SA authentication.&lt;/P&gt;&lt;P&gt;Where do you provide the DB user account and password to set up the library before the&amp;nbsp;&lt;SPAN&gt;Kerberos implementation?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2026 17:34:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-to-MSSQL-Database-connection-issue-via-ODBC-driver/m-p/984835#M30739</guid>
      <dc:creator>Eddie305</dc:creator>
      <dc:date>2026-03-16T17:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio to MSSQL Database connection issue via ODBC driver</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-to-MSSQL-Database-connection-issue-via-ODBC-driver/m-p/984840#M30740</link>
      <description>I guess this is because we have changed to run object spawner services running to one of service account, earlier it was running with local system . I am not quite sure how it was working before juts defining libname statement, could be SAS was using windows authentication ? Do I need to consider Kerberos delegation between the SAS Workspace Server and SQL Server?</description>
      <pubDate>Mon, 16 Mar 2026 18:25:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-to-MSSQL-Database-connection-issue-via-ODBC-driver/m-p/984840#M30740</guid>
      <dc:creator>kumarsandip975</dc:creator>
      <dc:date>2026-03-16T18:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio to MSSQL Database connection issue via ODBC driver</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-to-MSSQL-Database-connection-issue-via-ODBC-driver/m-p/984842#M30741</link>
      <description>If the Object Spawner and SQL Server are running using service accounts on different hosts, you may need to perform the steps discussed here to provide those service accounts with SPNs.&lt;BR /&gt;&lt;BR /&gt;Manually Registering Object Spawner SPNs&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/bicdc/9.4/bisecag/n1d1zo1jsf2o0en1ehu4c4simfky.htm#p0okm1tr2plixyn1r7zu1xww75tl" target="_blank"&gt;https://go.documentation.sas.com/doc/en/bicdc/9.4/bisecag/n1d1zo1jsf2o0en1ehu4c4simfky.htm#p0okm1tr2plixyn1r7zu1xww75tl&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Manually Registering SQL SPNs&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/bicdc/9.4/bisecag/n1d1zo1jsf2o0en1ehu4c4simfky.htm#n0f8oogy41y9ncn10d14p550u72l" target="_blank"&gt;https://go.documentation.sas.com/doc/en/bicdc/9.4/bisecag/n1d1zo1jsf2o0en1ehu4c4simfky.htm#n0f8oogy41y9ncn10d14p550u72l&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you are using constrained delegation, you would also need to allow the SAS SPN to delegate to the SQL Server SPN:&lt;BR /&gt;&lt;BR /&gt;Configure Kerberos&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/bicdc/9.4/bisecag/p1jg2eif6qym5qn1co79sdclcyt7.htm#n1t1pem89bgx20n18thw1u46yexi" target="_blank"&gt;https://go.documentation.sas.com/doc/en/bicdc/9.4/bisecag/p1jg2eif6qym5qn1co79sdclcyt7.htm#n1t1pem89bgx20n18thw1u46yexi&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and also be sure to set the SAS_CONSTRAINED_DELEG_ENABLED environment variable:&lt;BR /&gt;&lt;BR /&gt;Kerberos on Windows&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/bicdc/9.4/bisecag/p1jg2eif6qym5qn1co79sdclcyt7.htm#p187xli70ju0ncn11rm0n1xi0340" target="_blank"&gt;https://go.documentation.sas.com/doc/en/bicdc/9.4/bisecag/p1jg2eif6qym5qn1co79sdclcyt7.htm#p187xli70ju0ncn11rm0n1xi0340&lt;/A&gt;</description>
      <pubDate>Mon, 16 Mar 2026 18:45:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-to-MSSQL-Database-connection-issue-via-ODBC-driver/m-p/984842#M30741</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2026-03-16T18:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio to MSSQL Database connection issue via ODBC driver</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-to-MSSQL-Database-connection-issue-via-ODBC-driver/m-p/984849#M30745</link>
      <description>&lt;DIV&gt;
&lt;P&gt;Thanks, that makes sense. Our SAS application server and SQL Server are indeed hosted on different machines, so I’ve requested the AD team to delegate the required SPNs to the service account running the Object Spawner. I’ll share an update once I hear back from them.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Everything else seems to be in place, since Kerberos authentication is already working successfully from SAS Studio and the backend SAS services. It looks like only the database side was missing the required configuration.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;I do have one additional question:&lt;/STRONG&gt;&amp;nbsp;If you can assist me, we also connect to other databases such as Oracle and PostgreSQL through ODBC drivers on different servers. Should we expect a similar Kerberos delegation requirement for those, or is this issue specific to SQL Server? So far, no one has reported authentication problems with Oracle or PostgreSQL, so I’m not entirely sure whether Kerberos is involved for those connections in our SAS environment.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 16 Mar 2026 21:23:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-to-MSSQL-Database-connection-issue-via-ODBC-driver/m-p/984849#M30745</guid>
      <dc:creator>kumarsandip975</dc:creator>
      <dc:date>2026-03-16T21:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio to MSSQL Database connection issue via ODBC driver</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-to-MSSQL-Database-connection-issue-via-ODBC-driver/m-p/985010#M30750</link>
      <description>If those data sources are configured for Kerberos authentication you would similarly need to be allowed to delegate to the SPNs they use. It sounds like these are not configured for Kerberos authentication.</description>
      <pubDate>Thu, 19 Mar 2026 15:05:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-to-MSSQL-Database-connection-issue-via-ODBC-driver/m-p/985010#M30750</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2026-03-19T15:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio to MSSQL Database connection issue via ODBC driver</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-to-MSSQL-Database-connection-issue-via-ODBC-driver/m-p/985081#M30752</link>
      <description>&lt;P&gt;This got fix as you suggested, thanks for help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2026 22:36:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Studio-to-MSSQL-Database-connection-issue-via-ODBC-driver/m-p/985081#M30752</guid>
      <dc:creator>kumarsandip975</dc:creator>
      <dc:date>2026-03-20T22:36:06Z</dc:date>
    </item>
  </channel>
</rss>

