<?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 SQL Passthrough - Insert records from SAS dataset in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-SQL-Passthrough-Insert-records-from-SAS-dataset/m-p/314696#M9001</link>
    <description>&lt;P&gt;Thanks Reeza.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One more query - I'm trying to use BULKLOAD option and getting below error :&lt;/P&gt;
&lt;P&gt;ERROR: BCP=/BULKLOAD= option not supported by this datasource.&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;odbc.ini has&amp;nbsp;EnableBulkLoad=1&lt;/P&gt;
&lt;P&gt;Note: I'm using SAS from AIX environment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Request our advise on this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Nov 2016 01:49:13 GMT</pubDate>
    <dc:creator>aj34321</dc:creator>
    <dc:date>2016-11-28T01:49:13Z</dc:date>
    <item>
      <title>SAS SQL Passthrough - Insert records from SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-SQL-Passthrough-Insert-records-from-SAS-dataset/m-p/314692#M8999</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;Im&amp;nbsp;trying to insert records into SQL Server table through SQL Passthrough from SAS Dataset. Below is the code which Im using and error I get. Looks like i cannot use the SAS Dataset reference in a&amp;nbsp;&lt;SPAN&gt;SQL Passthrough. Please advice how can i fix this.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Note: &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;On SQL Server, i dont have&amp;nbsp;option to create a temporary table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I can use a&amp;nbsp;normal sql insert, but wondering how can i use it this way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;connect to sqlsvr (&amp;amp;sqlconn.);&lt;BR /&gt; execute&lt;BR /&gt; (&lt;BR /&gt; insert into sqlschema.sqltable&lt;BR /&gt; (&lt;BR /&gt; col1,&lt;BR /&gt; col2,&lt;BR /&gt; col3&lt;BR /&gt; ) &lt;BR /&gt; select &lt;BR /&gt; col1,&lt;BR /&gt; col2,&lt;BR /&gt; col3&lt;BR /&gt; from mylib.sas_dataset; &lt;BR /&gt; ) by sqlsvr;&lt;BR /&gt; disconnect from sqlsvr;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR: CLI execute error: [SAS/ACCESS to SQL Server][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Invalid object name '&lt;SPAN&gt;mylib&lt;/SPAN&gt;&lt;SPAN&gt;.sas_dataset&lt;/SPAN&gt;'.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 01:04:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-SQL-Passthrough-Insert-records-from-SAS-dataset/m-p/314692#M8999</guid>
      <dc:creator>aj34321</dc:creator>
      <dc:date>2016-11-28T01:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SQL Passthrough - Insert records from SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-SQL-Passthrough-Insert-records-from-SAS-dataset/m-p/314694#M9000</link>
      <description>&lt;P&gt;SQL Pass Through is a direct connection to your server, and this means you lose access to your SAS data sets.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One possible workaround is to create a macro that generates the records you need to insert, but if you can use a standard insert that's easier to program.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 01:21:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-SQL-Passthrough-Insert-records-from-SAS-dataset/m-p/314694#M9000</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-28T01:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SQL Passthrough - Insert records from SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-SQL-Passthrough-Insert-records-from-SAS-dataset/m-p/314696#M9001</link>
      <description>&lt;P&gt;Thanks Reeza.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One more query - I'm trying to use BULKLOAD option and getting below error :&lt;/P&gt;
&lt;P&gt;ERROR: BCP=/BULKLOAD= option not supported by this datasource.&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;odbc.ini has&amp;nbsp;EnableBulkLoad=1&lt;/P&gt;
&lt;P&gt;Note: I'm using SAS from AIX environment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Request our advise on this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 01:49:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-SQL-Passthrough-Insert-records-from-SAS-dataset/m-p/314696#M9001</guid>
      <dc:creator>aj34321</dc:creator>
      <dc:date>2016-11-28T01:49:13Z</dc:date>
    </item>
  </channel>
</rss>

