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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.