PROC APPEND is the easiest way to insert new rows into an external database table. Have you tried it?
PROC APPEND is one of the fastest because it's just a proc to move data, a data step or SQL procedure can also be used to transform data so it copies data line by line. APPEND copies data in blocks.
I'm assuming you have the bulkload option set up as well on your server connection.
@Babloo wrote:
I have table in SQL server and I have one SAS WORK data set. Both are similar structure with same data type.
Now I would like to know the different ways to insert SAS dataset observation in SQL table from SAS.
Is below code the right way to insert records in SQL server table?
e.g.
Proc append data=sqllibrary.table data=sas_work_dataset force;
Run;
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.