<?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 Query ... CLI prepare error in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SQL-Query-CLI-prepare-error/m-p/964516#M45902</link>
    <description>&lt;P&gt;What's wrong with this script ? it work fine on the production server but not on the development server even if the tables exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table test as
select contractVer.*
from cntrctDM.DIM_PL_CNTRCT_VER contractVer ;
quit;



ERROR: CLI prepare error: Cannot perform SELECT. This session does not have a current database. Call 'USE DATABASE', or use a 
qualified name.SQL statement: SELECT * FROM CONTRACTPL_DM.DIM_PL_CNTRCT_VER.&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 17 Apr 2025 14:25:44 GMT</pubDate>
    <dc:creator>alepage</dc:creator>
    <dc:date>2025-04-17T14:25:44Z</dc:date>
    <item>
      <title>SQL Query ... CLI prepare error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SQL-Query-CLI-prepare-error/m-p/964516#M45902</link>
      <description>&lt;P&gt;What's wrong with this script ? it work fine on the production server but not on the development server even if the tables exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table test as
select contractVer.*
from cntrctDM.DIM_PL_CNTRCT_VER contractVer ;
quit;



ERROR: CLI prepare error: Cannot perform SELECT. This session does not have a current database. Call 'USE DATABASE', or use a 
qualified name.SQL statement: SELECT * FROM CONTRACTPL_DM.DIM_PL_CNTRCT_VER.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Apr 2025 14:25:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SQL-Query-CLI-prepare-error/m-p/964516#M45902</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2025-04-17T14:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query ... CLI prepare error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SQL-Query-CLI-prepare-error/m-p/964566#M45912</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do both &lt;CODE class=" language-sas"&gt;libname&lt;/CODE&gt; definitions include the database name? What about the ODBC driver definitions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2025 04:14:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SQL-Query-CLI-prepare-error/m-p/964566#M45912</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2025-04-18T04:14:12Z</dc:date>
    </item>
  </channel>
</rss>

