<?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: How to connect to Azure SQL Managed Instance using Azure Service Principal from SAS EG in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-connect-to-Azure-SQL-Managed-Instance-using-Azure-Service/m-p/974030#M377786</link>
    <description>&lt;P&gt;What error are you getting?&lt;/P&gt;
&lt;P&gt;If you unsure what it means issue&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options msglevel=i sastrace='d,,d' sastraceloc=saslog nostsuffix;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;before the libname statement.&lt;/P&gt;
&lt;P&gt;Assuming the fire wall is open.&lt;/P&gt;
&lt;P&gt;Have you tried the connection from a non-SAS client?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Sep 2025 13:26:16 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2025-09-03T13:26:16Z</dc:date>
    <item>
      <title>How to connect to Azure SQL Managed Instance using Azure Service Principal from SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-connect-to-Azure-SQL-Managed-Instance-using-Azure-Service/m-p/974026#M377785</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently trying to upload data from SAS 9.4 to Azure SQL Managed Instance. I have the following information about the destination:&lt;/P&gt;&lt;P&gt;Instance Name -&amp;nbsp;&lt;!--  StartFragment   --&gt;&lt;SPAN class=""&gt;ABC.XYZ.database.windows.net&lt;/SPAN&gt;&lt;!--  EndFragment   --&gt;&lt;/P&gt;&lt;P&gt;Client ID - abcd&lt;/P&gt;&lt;P&gt;Client Secret - XXXXX&lt;/P&gt;&lt;P&gt;Schema - MNOP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to use&amp;nbsp;&lt;SPAN&gt;Service Principal authentication-based access to the Azure SQL Managed Instance. I've used Libname statement to connect to the target DB but I'm getting error while connecting.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please let me know if I need any other information to connect. Also, please help me with the libname statement over here.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 11:25:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-connect-to-Azure-SQL-Managed-Instance-using-Azure-Service/m-p/974026#M377785</guid>
      <dc:creator>pragam21</dc:creator>
      <dc:date>2025-09-03T11:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to Azure SQL Managed Instance using Azure Service Principal from SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-connect-to-Azure-SQL-Managed-Instance-using-Azure-Service/m-p/974030#M377786</link>
      <description>&lt;P&gt;What error are you getting?&lt;/P&gt;
&lt;P&gt;If you unsure what it means issue&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options msglevel=i sastrace='d,,d' sastraceloc=saslog nostsuffix;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;before the libname statement.&lt;/P&gt;
&lt;P&gt;Assuming the fire wall is open.&lt;/P&gt;
&lt;P&gt;Have you tried the connection from a non-SAS client?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 13:26:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-connect-to-Azure-SQL-Managed-Instance-using-Azure-Service/m-p/974030#M377786</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2025-09-03T13:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to Azure SQL Managed Instance using Azure Service Principal from SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-connect-to-Azure-SQL-Managed-Instance-using-Azure-Service/m-p/974045#M377790</link>
      <description>&lt;P&gt;When I'm trying the below LIBNAME statement, it's throwing the CLI error as the connection cannot be established.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;PRE&gt;LIBNAME MYAZURE ODBC PROMPT=YES DATAsrc="ABC.XYZ.database.windows.net" SCHEMA ="MNOP" USER="abcd" PWD="XXXX";&lt;/PRE&gt;&lt;/LI-SPOILER&gt;&lt;HR /&gt;&lt;P&gt;&amp;nbsp;And, when I'm trying the following LIBNAME statement, it's saying that "Invalid option name SERVER"&lt;/P&gt;&lt;PRE&gt;LIBNAME MYAZURE ODBC PROMPT=YES SERVER="ABC.XYZ.database.windows.net" DATABASE= "MNOP" USER="abcd" PWD="XXXX";&lt;/PRE&gt;&lt;P&gt;Also, I haven't tried the connection from a Non SAS client.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 15:37:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-connect-to-Azure-SQL-Managed-Instance-using-Azure-Service/m-p/974045#M377790</guid>
      <dc:creator>pragam21</dc:creator>
      <dc:date>2025-09-03T15:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to Azure SQL Managed Instance using Azure Service Principal from SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-connect-to-Azure-SQL-Managed-Instance-using-Azure-Service/m-p/974085#M377791</link>
      <description>&lt;P&gt;Since you are using ODBC you could test out the connection settings in the Windows ODBC administrator tool on your PC. Check first to see you have an SQL Server driver installed first:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASKiwi_0-1756930167929.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/109602i3CF3FCB15985741C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASKiwi_0-1756930167929.png" alt="SASKiwi_0-1756930167929.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;With an SQL Server driver installed like above you can then create a User DSN to test a database connection. If you can get it working on your PC then you can try the same settings in SAS. If SAS is running on the Windows Server OS then you can remotely logon to it and create the same DSN connection in the ODBC Administrator tool. If SAS is running on linux then connection details need to be defined in odbc.ini and that is a job for your SAS administrator. If SAS is running on your PC then you can use the DSN you already tested.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 20:18:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-connect-to-Azure-SQL-Managed-Instance-using-Azure-Service/m-p/974085#M377791</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2025-09-03T20:18:27Z</dc:date>
    </item>
  </channel>
</rss>

