<?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 SQL connect from sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SQL-connect-from-sas/m-p/509690#M137051</link>
    <description>&lt;P&gt;Iam trying to connect to sql server from sas and iam able to connect with libname statement successfully but not from the proc sql.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what might be the wrong in the below code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LIBNAME genis SQLSVR Datasrc=Genesis_ABC SCHEMA=dbo USER="XXXX" PASSWORD="XXXX";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#008000"&gt;Working Properly&amp;nbsp;&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;proc sql;&lt;BR /&gt;connect to odbc as mycon ( Datasrc=Genesis_ABC SCHEMA=dbo USER="&lt;SPAN&gt;XXXX&lt;/SPAN&gt;" PASSWORD="&lt;SPAN&gt;XXXX&lt;/SPAN&gt;");&lt;BR /&gt; create table work.TEST1 as&lt;BR /&gt; select * from connection to mycon&lt;BR /&gt; (select * from test1_table );&lt;BR /&gt; disconnect from mycon;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql getting below error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR: The ODBC engine cannot be found.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR: A Connection to the odbc DBMS is not currently supported, or is not installed at your site.&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Nov 2018 20:58:50 GMT</pubDate>
    <dc:creator>mmkr</dc:creator>
    <dc:date>2018-11-01T20:58:50Z</dc:date>
    <item>
      <title>SQL connect from sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-connect-from-sas/m-p/509690#M137051</link>
      <description>&lt;P&gt;Iam trying to connect to sql server from sas and iam able to connect with libname statement successfully but not from the proc sql.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what might be the wrong in the below code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LIBNAME genis SQLSVR Datasrc=Genesis_ABC SCHEMA=dbo USER="XXXX" PASSWORD="XXXX";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#008000"&gt;Working Properly&amp;nbsp;&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;proc sql;&lt;BR /&gt;connect to odbc as mycon ( Datasrc=Genesis_ABC SCHEMA=dbo USER="&lt;SPAN&gt;XXXX&lt;/SPAN&gt;" PASSWORD="&lt;SPAN&gt;XXXX&lt;/SPAN&gt;");&lt;BR /&gt; create table work.TEST1 as&lt;BR /&gt; select * from connection to mycon&lt;BR /&gt; (select * from test1_table );&lt;BR /&gt; disconnect from mycon;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql getting below error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR: The ODBC engine cannot be found.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR: A Connection to the odbc DBMS is not currently supported, or is not installed at your site.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 20:58:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-connect-from-sas/m-p/509690#M137051</guid>
      <dc:creator>mmkr</dc:creator>
      <dc:date>2018-11-01T20:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: SQL connect from sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-connect-from-sas/m-p/509694#M137053</link>
      <description>&lt;P&gt;are there missing quotes&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;connect to odbc as mycon ( Datasrc='Genesis_ABC' SCHEMA=dbo USER="&lt;/SPAN&gt;&lt;SPAN&gt;XXXX&lt;/SPAN&gt;&lt;SPAN&gt;" PASSWORD="&lt;/SPAN&gt;&lt;SPAN&gt;XXXX&lt;/SPAN&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 21:09:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-connect-from-sas/m-p/509694#M137053</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-11-01T21:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: SQL connect from sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-connect-from-sas/m-p/509695#M137054</link>
      <description>&lt;P&gt;Try changing your CONNECT TO statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;connect to SQLSVR as mycon ( Datasrc=Genesis_ABC SCHEMA=dbo USER="XXXX" PASSWORD="XXXX");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Nov 2018 21:12:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-connect-from-sas/m-p/509695#M137054</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-11-01T21:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: SQL connect from sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-connect-from-sas/m-p/509696#M137055</link>
      <description>&lt;P&gt;I tried with single quote and double quote..still getting same error&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 21:12:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-connect-from-sas/m-p/509696#M137055</guid>
      <dc:creator>mmkr</dc:creator>
      <dc:date>2018-11-01T21:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: SQL connect from sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-connect-from-sas/m-p/509698#M137057</link>
      <description>&lt;P&gt;Awesome--working fine after changing to&amp;nbsp;SQLSVR&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 21:13:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-connect-from-sas/m-p/509698#M137057</guid>
      <dc:creator>mmkr</dc:creator>
      <dc:date>2018-11-01T21:13:47Z</dc:date>
    </item>
  </channel>
</rss>

