<?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 Table upload into SQL Server through ODBC in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Table-upload-into-SQL-Server-through-ODBC/m-p/972850#M377574</link>
    <description>And PROC COPY could get you faster:&lt;BR /&gt;&lt;BR /&gt;proc copy in=work out=Server1;&lt;BR /&gt;select DiagnosisTable;&lt;BR /&gt;run;</description>
    <pubDate>Tue, 19 Aug 2025 01:55:38 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2025-08-19T01:55:38Z</dc:date>
    <item>
      <title>SAS Table upload into SQL Server through ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Table-upload-into-SQL-Server-through-ODBC/m-p/972840#M377571</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to upload around 7 million data record rows into a SQL Server database.&amp;nbsp; It is taking over 3 hours and the job is still running.&amp;nbsp; &amp;nbsp; Any help would be greatly appreciated.&amp;nbsp; I do not have any special code that I am writing into SQL.&amp;nbsp; Its just basically a SAS temp table uploading into SQL Server database.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code is simply this :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data Server1.DiagnosisTable;&lt;/P&gt;
&lt;P&gt;Set DiagnosisTable; Run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 21:02:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Table-upload-into-SQL-Server-through-ODBC/m-p/972840#M377571</guid>
      <dc:creator>BaileyY</dc:creator>
      <dc:date>2025-08-18T21:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Table upload into SQL Server through ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Table-upload-into-SQL-Server-through-ODBC/m-p/972842#M377572</link>
      <description>&lt;P&gt;Setting the INSERTBUFF option to a value of at least 10000 should speed things up drastically. Usually you apply that on the LIBNAME statement connecting to SQL Server. Database inserts are best done with PROC DATASETS and the APPEND statement in my experience.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 21:37:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Table-upload-into-SQL-Server-through-ODBC/m-p/972842#M377572</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2025-08-18T21:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Table upload into SQL Server through ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Table-upload-into-SQL-Server-through-ODBC/m-p/972850#M377574</link>
      <description>And PROC COPY could get you faster:&lt;BR /&gt;&lt;BR /&gt;proc copy in=work out=Server1;&lt;BR /&gt;select DiagnosisTable;&lt;BR /&gt;run;</description>
      <pubDate>Tue, 19 Aug 2025 01:55:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Table-upload-into-SQL-Server-through-ODBC/m-p/972850#M377574</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-08-19T01:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Table upload into SQL Server through ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Table-upload-into-SQL-Server-through-ODBC/m-p/972851#M377575</link>
      <description>OMFG- using this and the proc copy as suggested by KSharp reduced my data upload time from 5 hours to just 10 minutes.  thank you so very very much.</description>
      <pubDate>Tue, 19 Aug 2025 02:25:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Table-upload-into-SQL-Server-through-ODBC/m-p/972851#M377575</guid>
      <dc:creator>BaileyY</dc:creator>
      <dc:date>2025-08-19T02:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Table upload into SQL Server through ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Table-upload-into-SQL-Server-through-ODBC/m-p/972852#M377576</link>
      <description>Thank you so very much.  Using the InsertBuffer along with this proc copy dropped my upload time from hours to just 10 minutes.  Thank you so so much!!</description>
      <pubDate>Tue, 19 Aug 2025 02:26:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Table-upload-into-SQL-Server-through-ODBC/m-p/972852#M377576</guid>
      <dc:creator>BaileyY</dc:creator>
      <dc:date>2025-08-19T02:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Table upload into SQL Server through ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Table-upload-into-SQL-Server-through-ODBC/m-p/972853#M377577</link>
      <description>&lt;P&gt;That sounds good for 5 million rows.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 02:36:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Table-upload-into-SQL-Server-through-ODBC/m-p/972853#M377577</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2025-08-19T02:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Table upload into SQL Server through ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Table-upload-into-SQL-Server-through-ODBC/m-p/972857#M377580</link>
      <description>&lt;P&gt;Increase the INSERTBUFF option (≥10000) on your LIBNAME to speed up inserts. Using PROC DATASETS with APPEND is usually the fastest method.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 04:47:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Table-upload-into-SQL-Server-through-ODBC/m-p/972857#M377580</guid>
      <dc:creator>jennifertaylor</dc:creator>
      <dc:date>2025-08-19T04:47:37Z</dc:date>
    </item>
  </channel>
</rss>

