<?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: Problems when connecting SAS EG  to MS SQL Server databases in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Problems-when-connecting-SAS-EG-to-MS-SQL-Server-databases/m-p/401124#M278708</link>
    <description>&lt;P&gt;Your error message is clear. The SQL Server data source CLARITY_CLONE is not defined on the server where SAS is running. I can only assume you have defined the data source perhaps on your PC, not where SAS is running as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;also says.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Oct 2017 19:15:27 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2017-10-04T19:15:27Z</dc:date>
    <item>
      <title>Problems when connecting SAS EG  to MS SQL Server databases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problems-when-connecting-SAS-EG-to-MS-SQL-Server-databases/m-p/401072#M278699</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Any inputs would be very useful.&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am not able to connect SAS EG 7.1 to SQL Server. I tried different syntax but nothing works,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;specified&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ERROR: Error in the LIBNAME statement.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My system is 64 bit. I am using SAS EG is 32 bit to connect to SQL Server. I have checked the ODBC connection to SQL Server &amp;nbsp;(64 bit) which is successful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried connecting to SQL server using SAS EG 7.1 (64 bit) but no success.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Codes I am trying:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LIBNAME temp ODBC DSN='CLARITY_CLONE' user=XXXXX pwd=XXXX schema=CLARITY;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;libname mydblib odbc&lt;BR /&gt;noprompt="uid=XXXX;pwd=XXXX;dsn=CLARITY_CLONE"&lt;BR /&gt;stringdates=yes;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc sql;&lt;BR /&gt;connect to odbc (dsn=CLARITY_CLONE user=XXXXX pwd=XXXX);&lt;BR /&gt;create table test as select * from connection to odbc;&lt;BR /&gt;quit ; &lt;/STRONG&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;</description>
      <pubDate>Wed, 04 Oct 2017 17:22:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problems-when-connecting-SAS-EG-to-MS-SQL-Server-databases/m-p/401072#M278699</guid>
      <dc:creator>Aj</dc:creator>
      <dc:date>2017-10-04T17:22:44Z</dc:date>
    </item>
    <item>
      <title>Error Connecting SAS EG to SQL Server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problems-when-connecting-SAS-EG-to-MS-SQL-Server-databases/m-p/401073#M278700</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Any inputs would be very useful.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am not able to connect SAS EG 7.1 to SQL Server. I tried different syntax but nothing works,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;specified&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ERROR: Error in the LIBNAME statement.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My system is 64 bit. I am using SAS EG is 32 bit to connect to SQL Server. I have checked the ODBC connection to SQL Server &amp;nbsp;(64 bit) which is successful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried connecting to SQL server using SAS EG 7.1 (64 bit) but no success.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Codes I am trying:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LIBNAME temp ODBC DSN='CLARITY_CLONE' user=XXXXX pwd=XXXX schema=CLARITY;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;libname mydblib odbc&lt;BR /&gt;noprompt="uid=XXXX;pwd=XXXX;dsn=CLARITY_CLONE"&lt;BR /&gt;stringdates=yes;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc sql;&lt;BR /&gt;connect to odbc (dsn=CLARITY_CLONE user=XXXXX pwd=XXXX);&lt;BR /&gt;create table test as select * from connection to odbc;&lt;BR /&gt;quit ;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 17:25:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problems-when-connecting-SAS-EG-to-MS-SQL-Server-databases/m-p/401073#M278700</guid>
      <dc:creator>Aj</dc:creator>
      <dc:date>2017-10-04T17:25:25Z</dc:date>
    </item>
    <item>
      <title>CLI ERROR to Microsoft ODBC Driver Manager SQL Server ODBC DSN Connection Error:</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problems-when-connecting-SAS-EG-to-MS-SQL-Server-databases/m-p/401076#M278702</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Any inputs would be very useful.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am not able to connect SAS EG 7.1 to SQL Server. I tried different syntax but nothing works,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;specified&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ERROR: Error in the LIBNAME statement.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My system is 64 bit. I am using SAS EG is 32 bit to connect to SQL Server. I have checked the ODBC connection to SQL Server &amp;nbsp;(64 bit) which is successful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried connecting to SQL server using SAS EG 7.1 (64 bit) but no success.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Codes I am trying:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LIBNAME temp ODBC DSN='CLARITY_CLONE' user=XXXXX pwd=XXXX schema=CLARITY;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;libname mydblib odbc&lt;BR /&gt;noprompt="uid=XXXX;pwd=XXXX;dsn=CLARITY_CLONE"&lt;BR /&gt;stringdates=yes;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc sql;&lt;BR /&gt;connect to odbc (dsn=CLARITY_CLONE user=XXXXX pwd=XXXX);&lt;BR /&gt;create table test as select * from connection to odbc;&lt;BR /&gt;quit ;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 17:28:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problems-when-connecting-SAS-EG-to-MS-SQL-Server-databases/m-p/401076#M278702</guid>
      <dc:creator>Aj</dc:creator>
      <dc:date>2017-10-04T17:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error Connecting SAS EG to SQL Server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problems-when-connecting-SAS-EG-to-MS-SQL-Server-databases/m-p/401078#M278701</link>
      <description>&lt;P&gt;Please do not double-post; it only makes keeping track of the answers difficult.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 17:29:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problems-when-connecting-SAS-EG-to-MS-SQL-Server-databases/m-p/401078#M278701</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-10-04T17:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problems when connecting SAS EG  to MS SQL Server databases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problems-when-connecting-SAS-EG-to-MS-SQL-Server-databases/m-p/401081#M278703</link>
      <description>&lt;P&gt;I don't believe the DSN name should be in quotations. Try it first without a schema and then check it again with a schema to see if you can even connect to the DB.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME temp ODBC DSN=CLARITY_CLONE user=XXXXX pwd=XXXX ;&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Oct 2017 17:38:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problems-when-connecting-SAS-EG-to-MS-SQL-Server-databases/m-p/401081#M278703</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-04T17:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: CLI ERROR to Microsoft ODBC Driver Manager SQL Server ODBC DSN Connection Error:</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problems-when-connecting-SAS-EG-to-MS-SQL-Server-databases/m-p/401084#M278704</link>
      <description>&lt;P&gt;Have you actually verified that your computer has access to&amp;nbsp;MS SQL Server ODBC - does it appear in the ODBC Data source Administrator drivers?&lt;/P&gt;
&lt;P&gt;Is there either a System DSN or File DSN named &lt;STRONG&gt;'CLARITY_CLONE' &lt;/STRONG&gt; in the ODBC administrator&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 17:42:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problems-when-connecting-SAS-EG-to-MS-SQL-Server-databases/m-p/401084#M278704</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-10-04T17:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: CLI ERROR to Microsoft ODBC Driver Manager SQL Server ODBC DSN Connection Error:</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problems-when-connecting-SAS-EG-to-MS-SQL-Server-databases/m-p/401097#M278705</link>
      <description>&lt;P&gt;Thank you very much for a quick look Ballard.Any inputs would be extremely helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes.I have added it to System DSN. Please see the attachment.&amp;nbsp;&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;</description>
      <pubDate>Wed, 04 Oct 2017 18:06:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problems-when-connecting-SAS-EG-to-MS-SQL-Server-databases/m-p/401097#M278705</guid>
      <dc:creator>Aj</dc:creator>
      <dc:date>2017-10-04T18:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problems when connecting SAS EG  to MS SQL Server databases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problems-when-connecting-SAS-EG-to-MS-SQL-Server-databases/m-p/401100#M278706</link>
      <description>&lt;P&gt;Thank you very much for checking on this Rezza. I tried it out without quotes and I get the same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LIBNAME temp ODBC DSN=CLARITY_CLONE user=munjula pwd=XXXXXXXXXX;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;specified&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ERROR: Error in the LIBNAME statement.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 18:09:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problems-when-connecting-SAS-EG-to-MS-SQL-Server-databases/m-p/401100#M278706</guid>
      <dc:creator>Aj</dc:creator>
      <dc:date>2017-10-04T18:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problems when connecting SAS EG  to MS SQL Server databases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problems-when-connecting-SAS-EG-to-MS-SQL-Server-databases/m-p/401101#M278707</link>
      <description>&lt;P&gt;Is your EG on a server or working locally? If it's on a server the DSN needs to be set up on the server not your computer.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, make sure it's running locally.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 18:13:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problems-when-connecting-SAS-EG-to-MS-SQL-Server-databases/m-p/401101#M278707</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-04T18:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problems when connecting SAS EG  to MS SQL Server databases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problems-when-connecting-SAS-EG-to-MS-SQL-Server-databases/m-p/401124#M278708</link>
      <description>&lt;P&gt;Your error message is clear. The SQL Server data source CLARITY_CLONE is not defined on the server where SAS is running. I can only assume you have defined the data source perhaps on your PC, not where SAS is running as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;also says.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 19:15:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problems-when-connecting-SAS-EG-to-MS-SQL-Server-databases/m-p/401124#M278708</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-10-04T19:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problems when connecting SAS EG  to MS SQL Server databases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problems-when-connecting-SAS-EG-to-MS-SQL-Server-databases/m-p/401128#M278709</link>
      <description>&lt;P&gt;Thank you very much&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;. you are correct. My SAS EG connects to a server and I am giving a&lt;/P&gt;&lt;P&gt;DSN &amp;nbsp;= &amp;lt;My local ODBC connection name&amp;gt; (CLARITY_CLONE). I have requested for the server DSN name. Hopefully, that would resolve the problem. Thanks again for think through it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not able to run it locally so I will wait to get the DSN name at the server for the requested database.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 19:27:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problems-when-connecting-SAS-EG-to-MS-SQL-Server-databases/m-p/401128#M278709</guid>
      <dc:creator>Aj</dc:creator>
      <dc:date>2017-10-04T19:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problems when connecting SAS EG  to MS SQL Server databases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problems-when-connecting-SAS-EG-to-MS-SQL-Server-databases/m-p/401131#M278710</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;and you are right. I will notify you and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;and also&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;when I am able to connect using Server DSN names instead of my local DSN names. I appreciate all of your quick responses.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 19:29:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problems-when-connecting-SAS-EG-to-MS-SQL-Server-databases/m-p/401131#M278710</guid>
      <dc:creator>Aj</dc:creator>
      <dc:date>2017-10-04T19:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problems when connecting SAS EG  to MS SQL Server databases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problems-when-connecting-SAS-EG-to-MS-SQL-Server-databases/m-p/402448#M278711</link>
      <description>Thank you &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;. Your inputs helped me to solve the problem. the DSN= should be the server DSN</description>
      <pubDate>Mon, 09 Oct 2017 18:04:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problems-when-connecting-SAS-EG-to-MS-SQL-Server-databases/m-p/402448#M278711</guid>
      <dc:creator>Aj</dc:creator>
      <dc:date>2017-10-09T18:04:19Z</dc:date>
    </item>
  </channel>
</rss>

