<?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 Need help in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-help/m-p/102542#M8990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to the SAS programming.&lt;/P&gt;&lt;P&gt;I need to insert a sas dataset into a SQL server table using a SAS program in the UNIX environment.&lt;/P&gt;&lt;P&gt;I can&amp;nbsp; create a&amp;nbsp; connection to the SQL server. Need the command to insert dataset to SQL server table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Oct 2012 00:54:56 GMT</pubDate>
    <dc:creator>lzmilman</dc:creator>
    <dc:date>2012-10-22T00:54:56Z</dc:date>
    <item>
      <title>Need help</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-help/m-p/102542#M8990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to the SAS programming.&lt;/P&gt;&lt;P&gt;I need to insert a sas dataset into a SQL server table using a SAS program in the UNIX environment.&lt;/P&gt;&lt;P&gt;I can&amp;nbsp; create a&amp;nbsp; connection to the SQL server. Need the command to insert dataset to SQL server table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 00:54:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-help/m-p/102542#M8990</guid>
      <dc:creator>lzmilman</dc:creator>
      <dc:date>2012-10-22T00:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need help</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-help/m-p/102543#M8991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this what you are looking for?:&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/sqlproc/62086/HTML/default/viewer.htm#a001387930.htm"&gt;http://support.sas.com/documentation/cdl/en/sqlproc/62086/HTML/default/viewer.htm#a001387930.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 03:38:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-help/m-p/102543#M8991</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-22T03:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need help</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-help/m-p/102544#M8992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your connection that you have created is a libref, you can also use PROC APPEND.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 11:01:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-help/m-p/102544#M8992</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2012-10-22T11:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need help</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-help/m-p/102545#M8993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After seeing other answers, I am now a bit confused about what you were asking for. I thought you asked how to insert(not sure what you mean by that though, suppose Art's answer will cover that) a SAS table into SQL server dataset. If that is the case,&amp;nbsp; it will be about SAS/ACCESS (depending on what license you have, it could be SQL server, ODBC or OLE DB driver, run proc setinit; to check it.). My suggestion will be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Use either libname engine or other to assign a libref pointing to SQL server workspace, the detailed SAS statements will vary&amp;nbsp; a little depending on what kind of engine you are using, check SAS docs for more.&amp;nbsp; Then convert your SAS table into SQL server dataset. It could be as simple as the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; data SQL.want; /*SQL server dataset*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set SAS.have;/*SAS table*/&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Then you can use whatever client apps native to SQL server to do the 'insert', or use SAS pass-through.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 13:00:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-help/m-p/102545#M8993</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2012-10-22T13:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need help</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-help/m-p/102546#M8994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Izmilman,&lt;/P&gt;&lt;P&gt;Inserting in relational database can be done using proc dbload.&amp;nbsp; SAS/ACCESS provides an interface to do this, provided your site should have the necessary licence to do this.&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a001405617.htm" title="http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a001405617.htm"&gt;http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a001405617.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like native sql server sql.&amp;nbsp; you don't need to create the structure, inserting separately.&amp;nbsp; SAS/ACCESS interface provides this functionality. you don't need to worry about defining the datatypes as per sql server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 15:39:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-help/m-p/102546#M8994</guid>
      <dc:creator>jonam</dc:creator>
      <dc:date>2012-10-22T15:39:27Z</dc:date>
    </item>
  </channel>
</rss>

