Hello,
I am trying to upload around 7 million data record rows into a SQL Server database. It is taking over 3 hours and the job is still running. Any help would be greatly appreciated. I do not have any special code that I am writing into SQL. Its just basically a SAS temp table uploading into SQL Server database.
My code is simply this :
Data Server1.DiagnosisTable;
Set DiagnosisTable; Run;
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.
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.
Increase the INSERTBUFF option (≥10000) on your LIBNAME to speed up inserts. Using PROC DATASETS with APPEND is usually the fastest method.
That sounds good for 5 million rows.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.