<?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 SAS and Azure SQL DAta warehouse/Database in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-and-Azure-SQL-DAta-warehouse-Database/m-p/354597#M82968</link>
    <description>&lt;P&gt;Dear SAS Users,&lt;/P&gt;
&lt;P&gt;I have set up a DSN that allows me to connect to Azure using a libname.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;LIBNAME&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; EREKA_AZ ODBC DSN = '&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;MYDB'&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; SCHEMA=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;'THESCHEMA'&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;Is there a way to translate this so I can use SQL PAss through?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New"&gt;SQL&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New"&gt;NOPRINT&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;CONNECT&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New"&gt;TO&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; ODBC ( &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt; DSN = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;"MYDB"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#800080" face="Courier New"&gt;SCHEMA = 'THESCHEMA'&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;);&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;create&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; test &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;as&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; * &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; odbc(&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; * &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; le_table&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;);&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;DISCONNECT&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New"&gt;FROM&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; ODBC;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;STRONG&gt;QUIT&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Apr 2017 20:15:19 GMT</pubDate>
    <dc:creator>shwilliams4</dc:creator>
    <dc:date>2017-04-28T20:15:19Z</dc:date>
    <item>
      <title>SAS and Azure SQL DAta warehouse/Database</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-and-Azure-SQL-DAta-warehouse-Database/m-p/354597#M82968</link>
      <description>&lt;P&gt;Dear SAS Users,&lt;/P&gt;
&lt;P&gt;I have set up a DSN that allows me to connect to Azure using a libname.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;LIBNAME&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; EREKA_AZ ODBC DSN = '&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;MYDB'&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; SCHEMA=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;'THESCHEMA'&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;Is there a way to translate this so I can use SQL PAss through?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New"&gt;SQL&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New"&gt;NOPRINT&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;CONNECT&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New"&gt;TO&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; ODBC ( &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt; DSN = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;"MYDB"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#800080" face="Courier New"&gt;SCHEMA = 'THESCHEMA'&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;);&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;create&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; test &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;as&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; * &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; odbc(&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; * &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; le_table&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;);&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;DISCONNECT&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New"&gt;FROM&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; ODBC;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;STRONG&gt;QUIT&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 20:15:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-and-Azure-SQL-DAta-warehouse-Database/m-p/354597#M82968</guid>
      <dc:creator>shwilliams4</dc:creator>
      <dc:date>2017-04-28T20:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAS and Azure SQL DAta warehouse/Database</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-and-Azure-SQL-DAta-warehouse-Database/m-p/354642#M82985</link>
      <description>&lt;P&gt;If you can successfully connect using a LIBNAME then you should be able to do the same with a CONNECT statement in PROC SQL. Please post the log of your SQL PASSTHRU test so we can see what errors you are getting.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Apr 2017 00:24:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-and-Azure-SQL-DAta-warehouse-Database/m-p/354642#M82985</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-04-29T00:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS and Azure SQL DAta warehouse/Database</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-and-Azure-SQL-DAta-warehouse-Database/m-p/355095#M83164</link>
      <description>&lt;P&gt;I was making an error somewhere. I am able rto connect via the dsn. Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2017 22:11:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-and-Azure-SQL-DAta-warehouse-Database/m-p/355095#M83164</guid>
      <dc:creator>shwilliams4</dc:creator>
      <dc:date>2017-05-01T22:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS and Azure SQL DAta warehouse/Database</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-and-Azure-SQL-DAta-warehouse-Database/m-p/355688#M83300</link>
      <description>&lt;P&gt;Back to being unable to connect.&lt;/P&gt;
&lt;P&gt;libname AZsand ODBC DSN="EReKA DB Sandbox";&lt;/P&gt;
&lt;P&gt;NOTE: Libref AZSAND was successfully assigned as follows:&lt;/P&gt;
&lt;P&gt;Engine: ODBC&lt;/P&gt;
&lt;P&gt;Physical Name: EReKA DB Sandbox&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But no tables appear in the libname.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New"&gt;SQL&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New"&gt;NOPRINT&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;CONNECT&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New"&gt;TO&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; ODBC ( &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt; DSN = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;"EREKA DB Sandbox"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;);&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;create&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; az_counts &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;as&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; * &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; connection to odbc&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;(&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; ereka_model_seq,count(*) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; counter &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; [dbo]&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New"&gt;.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New"&gt;[ereka_model_data]&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;group&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; ereka_model_seq&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;);&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;DISCONNECT&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New"&gt;FROM&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; ODBC;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;STRONG&gt;QUIT&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;Works. So the DSN is working, just not for a libname.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;I have tested the conenction through ODBC-32 bit and SQL Server Management Studio.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 17:26:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-and-Azure-SQL-DAta-warehouse-Database/m-p/355688#M83300</guid>
      <dc:creator>shwilliams4</dc:creator>
      <dc:date>2017-05-03T17:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS and Azure SQL DAta warehouse/Database</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-and-Azure-SQL-DAta-warehouse-Database/m-p/500628#M133352</link>
      <description>&lt;P&gt;It depends on how you've setup the &lt;SPAN&gt;"EReKA DB Sandbox"&amp;nbsp;&lt;/SPAN&gt;ODBC connection. If you've specified which database to connect then you don't need to specify the database, but you still have to tell it which schema to connect to, otherwise it will show as blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;libname AZsand ODBC DSN="EReKA DB Sandbox" schema=dbo;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you just specified "master" in the &lt;SPAN&gt;"EReKA DB Sandbox" odbc&amp;nbsp;&lt;/SPAN&gt;setup, then you'll have to specify the database i.e.:&amp;nbsp;&lt;STRONG&gt;libname AZsand ODBC DSN="EReKA DB Sandbox" database = myDatabase schema=dbo;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For your passthrough again depending on how the odbc is setup you might need to specify the database. Use the "&lt;U&gt;%PUT &amp;amp;SQLXRC. &amp;amp;SQLXMSG. ;&lt;/U&gt;" so that you can see the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" color="#000080"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" color="#000080"&gt;SQL&lt;/FONT&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;NOPRINT&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;CONNECT&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;TO&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;ODBC (&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;DSN =&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" color="#800080"&gt;"EREKA DB Sandbox"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;create&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;az_counts&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;*&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;connection to odbc&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;ereka_model_seq,count(*)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;counter&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;[myDatabase]&lt;/STRONG&gt;.&lt;/SPAN&gt;[dbo]&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" color="#008080"&gt;.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New"&gt;[ereka_model_data]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;group&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;ereka_model_seq&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%PUT &amp;amp;SQLXRC. &amp;amp;SQLXMSG. ; * SQL Server query return code and message;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;DISCONNECT&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;FROM&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;ODBC;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" color="#000080"&gt;&lt;STRONG&gt;QUIT&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also&amp;nbsp;create the ODBC credentials on the fly like below to test out how to connect directly to AZURE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;libname&amp;nbsp;Azure odbc complete="driver={SQL Server Native Client 11.0}; uid=myUserID; pwd=myPassword; server=azureServer,port; database=myDatabse" schema=dbo;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" color="#000080"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" color="#000080"&gt;SQL&lt;/FONT&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;NOPRINT&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;CONNECT&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;TO&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;ODBC (&lt;STRONG&gt;complete="driver={SQL Server Native Client 11.0}; uid=myUserID; pwd=myPassword; server=azureServer,port; database=myDatabse"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;create&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;az_counts&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;*&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;connection to odbc&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;ereka_model_seq,count(*)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;counter&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;[myDatabase]&lt;/STRONG&gt;.&lt;/SPAN&gt;[dbo]&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" color="#008080"&gt;.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New"&gt;[ereka_model_data]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;group&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;ereka_model_seq&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%PUT &amp;amp;SQLXRC. &amp;amp;SQLXMSG. ; * SQL Server query return code and message;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;DISCONNECT&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;FROM&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;ODBC;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" color="#000080"&gt;&lt;STRONG&gt;QUIT&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 05:47:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-and-Azure-SQL-DAta-warehouse-Database/m-p/500628#M133352</guid>
      <dc:creator>Jansen</dc:creator>
      <dc:date>2018-10-02T05:47:58Z</dc:date>
    </item>
  </channel>
</rss>

