BookmarkSubscribeRSS Feed
stat_sas
Ammonite | Level 13

Hi Everyone,

Just trying to load a SAS dataset (half a mil observations with 10 variables) into sql server but it takes a lot of time. I don't have any problem while loading sql server table into SAS using odbc. But when I am trying to reload SAS dataset into sql server after some processing, this is taking a lot of time. I am hoping an expert solution from the forum please.

Regards,

2 REPLIES 2
Murray_Court
Quartz | Level 8

Perhaps you have an asymmetrical network conntection that means that you can download data much faster than you can upload it? This is very common.

LinusH
Tourmaline | Level 20

Loading a SAS table is usually fast, and in comparison with most standard RDBMS, it's much faster.

But there are ways to trim this.

On the SQL Server side, you may need to discuss with the DBA on how to optimize the database/table for loading in bulk. Clustered indexes and stuff like that can slow processing down.

From SAS, you can set some libname/data set options to enhance performance. Take a look at BULKLOAD, INSERTBUFF and DBCOMMIT options as a start.

You can also search support.sas.com, since SAS/ACCESS performance is a common topic.

Data never sleeps

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 575 views
  • 0 likes
  • 3 in conversation