<?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: SAS/Access Question in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Question/m-p/155279#M2714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Russell,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check the following SAS/ACCESS documentation&lt;/P&gt;&lt;P&gt;- &lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/63647/PDF/default/acreldb.pdf"&gt;SAS/ACCESS® 9.2 for Relational Databases Reference Fourth Edition&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;DBLOAD Procedure Specifics for Microsoft SQL Server, Page: 598&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- &lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/65247/PDF/default/acreldb.pdf"&gt;SAS/ACCESS® 9.3 for Relational Databases Reference, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;DBLOAD Procedure Specifics for Microsoft SQL Server, Page: 602&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Nov 2013 15:28:57 GMT</pubDate>
    <dc:creator>AhmedAl_Attar</dc:creator>
    <dc:date>2013-11-25T15:28:57Z</dc:date>
    <item>
      <title>SAS/Access Question</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Question/m-p/155278#M2713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am working with some data on an MS/SQL database, and I want to do my explicit pass-thru statement to create a table on the SQL &lt;SPAN class="gm_ gm_4db86e4d-7e20-f09d-58da-e939f0b72294 gm-spell"&gt;db&lt;/SPAN&gt;.&amp;nbsp; The only way I know to do this is to set a &lt;SPAN class="gm_ gm_457d4f20-4a2a-0164-b392-fa7801c1191e gm-spell"&gt;libname&lt;/SPAN&gt; pointing to the MS/SQL server, then set that in my create table statement, but this seems very inefficient.&amp;nbsp; I would think I should be able to open the connection then create a new table within it.&amp;nbsp; Thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current situation:&lt;/P&gt;&lt;P&gt;LIBNAME &lt;STRONG&gt;temp&lt;/STRONG&gt; DATASRC=Sandbox USER=x PASS=x SCHEMA=dbo;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;create shell in MS/SQL&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt;CONNECT TO &amp;lt;blah&amp;gt;&lt;/P&gt;&lt;P&gt;CREATE TABLE &lt;STRONG&gt;temp.MyTable&lt;/STRONG&gt; AS SELECT * FROM CONNECTION TO ODBC ( blah);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="gmw_"&gt;Shouldn't I &lt;SPAN class="gm_ gm_da258dd6-e4d2-c476-bdbc-1a7a964fa68e gm-spell"&gt;be&lt;/SPAN&gt; able to set some "create table" statement within the subquery to MS/SQL?&amp;nbsp; It seems this would be way more efficient...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="gmw_"&gt;Also, my old client used to use Teradata&lt;SPAN class="gm_ gm_19acd655-e9f2-aa41-889f-5781292f4405 gm-spell gm_tiny"&gt; &lt;/SPAN&gt;and there was a Fastload=yes option we used... is there such a thing for MS/SQL?&amp;nbsp; It takes FOREVER to upload a mere 1,000 records.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;--Russell&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 14:32:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Question/m-p/155278#M2713</guid>
      <dc:creator>That____Redhead</dc:creator>
      <dc:date>2013-11-25T14:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Access Question</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Question/m-p/155279#M2714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Russell,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check the following SAS/ACCESS documentation&lt;/P&gt;&lt;P&gt;- &lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/63647/PDF/default/acreldb.pdf"&gt;SAS/ACCESS® 9.2 for Relational Databases Reference Fourth Edition&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;DBLOAD Procedure Specifics for Microsoft SQL Server, Page: 598&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- &lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/65247/PDF/default/acreldb.pdf"&gt;SAS/ACCESS® 9.3 for Relational Databases Reference, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;DBLOAD Procedure Specifics for Microsoft SQL Server, Page: 602&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 15:28:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Question/m-p/155279#M2714</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2013-11-25T15:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Access Question</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Question/m-p/155280#M2715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Russell,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you use the LIBNAME in your SQL code you are not doing explicit pass-thru. I don't have MySQL specific code but you can see the differences with this Teradata example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Notice this code does not use a LIBNAME statement */&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt;CONNECT TO TERADATA (SERVER=myTera&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USER=myUser&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PASSWORD=myPasswd);&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Everything in the () is sent directly to the database */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SELECT * FROM CONNECTION TO TERADATA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (select * &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from eecdata.order_fact a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , eecdata.order_fact));&lt;/P&gt;&lt;P&gt;DISCONNECT FROM TERADATA;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are some slides that explain it.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="passthru-2.jpg" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/4571_passthru-2.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="passthru-1.jpg" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/4570_passthru-1.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;If you want to force this to happen using Implicit Pass-Thru you can do that using the DBIDIRECTEXEC option. Here is an example, unfortunately it is Teradata. The assumption here is that I created the tera1 library using a LIBNAME statement.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="DBIDIRECTEXEC.jpg" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/4572_DBIDIRECTEXEC.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;You probably know this, but others may not. You can get SAS to display the SQL being passed to the database using the following option. The SQL will be written to the SAS log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPTIONS SASTRACE=',,,d' SASTRACELOC=saslog NOSTSUFFIX;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this will get you on the right track. If you need MySQL specific examples, let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes,&lt;BR /&gt;Jeff&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 22:47:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Question/m-p/155280#M2715</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2013-11-26T22:47:58Z</dc:date>
    </item>
  </channel>
</rss>

