<?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: Data from SAS to Ms SQL in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Data-from-SAS-to-Ms-SQL/m-p/763248#M30438</link>
    <description>&lt;P&gt;Are you creating a new table in the remote database? Or appending data to an existing table?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usually PROC APPEND is the easiest/fastest way.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a libref that points to the schema in the remote database and then use PROC APPEND to copy the data.&lt;/P&gt;
&lt;P&gt;If the target table does not exist then the FORCE option will tell SAS to create the table first.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname mydb odbc ..... ;
proc append base=mydb.target_table data=mylib.mydataset force;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 23 Aug 2021 14:23:04 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2021-08-23T14:23:04Z</dc:date>
    <item>
      <title>Data from SAS to Ms SQL</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Data-from-SAS-to-Ms-SQL/m-p/763209#M30430</link>
      <description>&lt;P&gt;hi there&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am looking for a Proc SQL code to transfer a table from SAS to Ms SQL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please assist, I can not find any code anywhere&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 10:58:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Data-from-SAS-to-Ms-SQL/m-p/763209#M30430</guid>
      <dc:creator>Citrine10</dc:creator>
      <dc:date>2021-08-23T10:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Data from SAS to Ms SQL</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Data-from-SAS-to-Ms-SQL/m-p/763239#M30436</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/338030"&gt;@Citrine10&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;hi there&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i am looking for a Proc SQL code to transfer a table from SAS to Ms SQL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please assist, I can not find any code anywhere&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then you should visit an eye specialist, i am 100% sure that code exists showing how to use insert to copy data from one dataset to another. Depending on the way the connection to ms sql is established, using proc copy could be faster.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 13:36:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Data-from-SAS-to-Ms-SQL/m-p/763239#M30436</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-08-23T13:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Data from SAS to Ms SQL</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Data-from-SAS-to-Ms-SQL/m-p/763248#M30438</link>
      <description>&lt;P&gt;Are you creating a new table in the remote database? Or appending data to an existing table?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usually PROC APPEND is the easiest/fastest way.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a libref that points to the schema in the remote database and then use PROC APPEND to copy the data.&lt;/P&gt;
&lt;P&gt;If the target table does not exist then the FORCE option will tell SAS to create the table first.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname mydb odbc ..... ;
proc append base=mydb.target_table data=mylib.mydataset force;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Aug 2021 14:23:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Data-from-SAS-to-Ms-SQL/m-p/763248#M30438</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-08-23T14:23:04Z</dc:date>
    </item>
  </channel>
</rss>

