<?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 Import data via OLEDB: Join multiple tables using custom SQL in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-data-via-OLEDB-Join-multiple-tables-using-custom-SQL/m-p/42244#M4985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; If you want to use your own SQL (OLEDB specific), you have to use explicit pass through. Which means that first you have to connect to your OLEDB data source, then enclose your SQL in either an execute block (if your SQL does not return any values to the SAS session, which is the case when creating permanent tables in the source database), or in a "from connection to" block, which is refferre3d to in a SAS SQL from statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This however does not use any of the built in logic in EG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could probably recreate some parts of the SQL by using the Query Builder. it has an option that will create the necessary SQL pass-thru specific code for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Linus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Nov 2011 12:48:20 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2011-11-07T12:48:20Z</dc:date>
    <item>
      <title>Import data via OLEDB: Join multiple tables using custom SQL</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-data-via-OLEDB-Join-multiple-tables-using-custom-SQL/m-p/42243#M4984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We don't have the SAS Connector for Oracle. But we are able to import Oracle tables via OLEDB using Enterprise Guide. These are very normalized tables, and hence we have advanced SQL that joins many tables to produce a single table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we were to use OLEDB as shown in 2nd attachment, we would be importing many tables (50+) one by one in EG and using Table Join to get the final table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have the SQL code ready. Is there a way for us to execute this SQL via OLEDB in EG? It is possible in JMP, as shown in 1st attachment.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11793i639C23F5104BFDC5/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="eg_oledb.png" title="eg_oledb.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11794iBC7F92BD47873477/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="jmp_advanceSQL.png" title="jmp_advanceSQL.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 08:14:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-data-via-OLEDB-Join-multiple-tables-using-custom-SQL/m-p/42243#M4984</guid>
      <dc:creator>hellind</dc:creator>
      <dc:date>2011-11-07T08:14:07Z</dc:date>
    </item>
    <item>
      <title>Import data via OLEDB: Join multiple tables using custom SQL</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-data-via-OLEDB-Join-multiple-tables-using-custom-SQL/m-p/42244#M4985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; If you want to use your own SQL (OLEDB specific), you have to use explicit pass through. Which means that first you have to connect to your OLEDB data source, then enclose your SQL in either an execute block (if your SQL does not return any values to the SAS session, which is the case when creating permanent tables in the source database), or in a "from connection to" block, which is refferre3d to in a SAS SQL from statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This however does not use any of the built in logic in EG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could probably recreate some parts of the SQL by using the Query Builder. it has an option that will create the necessary SQL pass-thru specific code for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Linus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 12:48:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-data-via-OLEDB-Join-multiple-tables-using-custom-SQL/m-p/42244#M4985</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2011-11-07T12:48:20Z</dc:date>
    </item>
  </channel>
</rss>

