<?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: Push Dataset to MS SQL server in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Push-Dataset-to-MS-SQL-server/m-p/537916#M148029</link>
    <description>&lt;P&gt;A couple of suggestions:&lt;BR /&gt;&lt;BR /&gt;Use SAS to load a temporary SQL Server table which is then used by the SQL Server load process.&lt;BR /&gt;Write a delimited file from SAS then get the SQL Server load process to read the delimited file&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Data-Management/Load-SAS-Dataset-to-MS-SQL-Server-via-SQL-server-job/m-p/290472#M8243" target="_blank"&gt;https://communities.sas.com/t5/SAS-Data-Management/Load-SAS-Dataset-to-MS-SQL-Server-via-SQL-server-job/m-p/290472#M8243&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;us the update statement in you datastep or sql statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 23 Feb 2019 00:37:05 GMT</pubDate>
    <dc:creator>VDD</dc:creator>
    <dc:date>2019-02-23T00:37:05Z</dc:date>
    <item>
      <title>Push Dataset to MS SQL server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Push-Dataset-to-MS-SQL-server/m-p/537915#M148028</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering if there is any other way to export sas dataset to ms sql server other than sas_dataset&amp;gt;csv&amp;gt;ms sql dataset manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I connected to the MS sql server through&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname ABC odbc noprompt = "server=SQLSVR;driver=SQL server native client 11.0; &lt;BR /&gt;        Trusted_connection=yes" database=mydatabase schema=dbo;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, i haven't understood how this works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate any recommendations/tips regarding this problem.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Feb 2019 00:21:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Push-Dataset-to-MS-SQL-server/m-p/537915#M148028</guid>
      <dc:creator>monona</dc:creator>
      <dc:date>2019-02-23T00:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Push Dataset to MS SQL server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Push-Dataset-to-MS-SQL-server/m-p/537916#M148029</link>
      <description>&lt;P&gt;A couple of suggestions:&lt;BR /&gt;&lt;BR /&gt;Use SAS to load a temporary SQL Server table which is then used by the SQL Server load process.&lt;BR /&gt;Write a delimited file from SAS then get the SQL Server load process to read the delimited file&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Data-Management/Load-SAS-Dataset-to-MS-SQL-Server-via-SQL-server-job/m-p/290472#M8243" target="_blank"&gt;https://communities.sas.com/t5/SAS-Data-Management/Load-SAS-Dataset-to-MS-SQL-Server-via-SQL-server-job/m-p/290472#M8243&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;us the update statement in you datastep or sql statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Feb 2019 00:37:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Push-Dataset-to-MS-SQL-server/m-p/537916#M148029</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-02-23T00:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Push Dataset to MS SQL server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Push-Dataset-to-MS-SQL-server/m-p/537917#M148030</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/214996"&gt;@monona&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What do you mean by "manually"? Once you've defined the library connecting to the data base you can use it like any other libref.&lt;/P&gt;
&lt;P&gt;Code like below would append data from sashelp.class to a table class on your server. It even would create the table in the database if it doesn't exist already.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc append base=abc.class data=sashelp.class;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The SAS/Access to ODBC documentation will provide you with much more detail.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Feb 2019 00:40:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Push-Dataset-to-MS-SQL-server/m-p/537917#M148030</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-02-23T00:40:59Z</dc:date>
    </item>
  </channel>
</rss>

