<?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 Implicit vs Explicit SQL Pass through SQL Query in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Implicit-vs-Explicit-SQL-Pass-through-SQL-Query-in-SAS/m-p/261905#M51042</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please can you let me know the Difference between Implicit vs Explicit Pass through Query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Support your answer with an example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Deepanker&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2016 19:16:53 GMT</pubDate>
    <dc:creator>dkanand86</dc:creator>
    <dc:date>2016-04-06T19:16:53Z</dc:date>
    <item>
      <title>Implicit vs Explicit SQL Pass through SQL Query in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implicit-vs-Explicit-SQL-Pass-through-SQL-Query-in-SAS/m-p/261905#M51042</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please can you let me know the Difference between Implicit vs Explicit Pass through Query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Support your answer with an example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Deepanker&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 19:16:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implicit-vs-Explicit-SQL-Pass-through-SQL-Query-in-SAS/m-p/261905#M51042</guid>
      <dc:creator>dkanand86</dc:creator>
      <dc:date>2016-04-06T19:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit vs Explicit SQL Pass through SQL Query in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implicit-vs-Explicit-SQL-Pass-through-SQL-Query-in-SAS/m-p/261909#M51044</link>
      <description>&lt;P&gt;Explicit passes the query to the DB to be executed. The commands are literally passed directly to the server, and as such need to be db compliant, ie if it's an oracle database, its Oracle SQL. All data must exist on the server. You can also use explicit pass through to execute a stored process on the server.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Implicit uses SAS SQL. Depending on the db certain functions may or may not be passed through, the documentation lists which are passed through for each database. Depending on the query, processing may occur on db or on SAS side. If you're using data from work library and server, then the processing happens on the SAS side and the data is pulled down from the SQL server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure how an example would help here, because it's such a general question and dependent on many things, the database type, the functions in the query and where the data exists, ie on server or on desktop.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm also 99% sure there are better answers than mine on here so searching may get you a better response.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;General question = general response.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 19:26:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implicit-vs-Explicit-SQL-Pass-through-SQL-Query-in-SAS/m-p/261909#M51044</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-06T19:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit vs Explicit SQL Pass through SQL Query in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implicit-vs-Explicit-SQL-Pass-through-SQL-Query-in-SAS/m-p/261938#M51047</link>
      <description>&lt;P&gt;Just want to add some personal thoughts.&lt;/P&gt;
&lt;P&gt;I always favour&amp;nbsp;implicit pass thru. This because your code will be DB&amp;nbsp;independent (sort of), and easier to write and read (less statements and nesting).&lt;/P&gt;
&lt;P&gt;I only explore explicit pass thru if I hit performance bottlenecks (such as described by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza﻿&lt;/a&gt;), or if there are any very specific native functionality I need to use (SQL dialect, or Stored Procedure to mention a few).&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 21:00:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implicit-vs-Explicit-SQL-Pass-through-SQL-Query-in-SAS/m-p/261938#M51047</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-04-06T21:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit vs Explicit SQL Pass through SQL Query in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implicit-vs-Explicit-SQL-Pass-through-SQL-Query-in-SAS/m-p/261947#M51049</link>
      <description>&lt;P&gt;An explicit SQL Pass through&amp;nbsp;is coded as such by you.&lt;/P&gt;
&lt;P&gt;Your proc sql contains a&amp;nbsp;connection to the database and a request to use that connection, such as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
connect to oracle (user=myusr1 password=mypwd1);
select *
   from connection to oracle
     (select * &lt;BR /&gt;      from customers
      where customer like '1%');
    disconnect from oracle;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An implicit pass through uses standard sas code and lets sas do the connection and translation work for you, behind the scene.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
     select * 
     from ORALIB.CUSTOMERS      
     where CUSTOMER like '1%';
quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Apr 2016 22:08:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implicit-vs-Explicit-SQL-Pass-through-SQL-Query-in-SAS/m-p/261947#M51049</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-04-06T22:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit vs Explicit SQL Pass through SQL Query in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implicit-vs-Explicit-SQL-Pass-through-SQL-Query-in-SAS/m-p/353982#M82709</link>
      <description>&lt;P&gt;explicit pass through query is nothing but when we connect to the data base the query which hits the database and make the required modifications in the db and imports the data. Here the total execution takes place in db.&lt;BR /&gt;when we code explicit pass through query the sas functions wont work. for example we are connecting to oracle we have to write oracle functions only.&lt;BR /&gt;&lt;BR /&gt;Proc sql;&lt;BR /&gt;connect to oracle (user=XXX password=XXX);&lt;BR /&gt;select * from connection to oracle&lt;BR /&gt;(select * from table);&lt;BR /&gt;disconnect from oracle;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;in implicit pass through query the execution takes place in sas server itself and imports the data.&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;select * from table&lt;BR /&gt;where condition;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;or&lt;BR /&gt;Libname libref "path";&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 05:18:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implicit-vs-Explicit-SQL-Pass-through-SQL-Query-in-SAS/m-p/353982#M82709</guid>
      <dc:creator>srinath</dc:creator>
      <dc:date>2017-04-27T05:18:36Z</dc:date>
    </item>
  </channel>
</rss>

