BookmarkSubscribeRSS Feed
NN
Quartz | Level 8 NN
Quartz | Level 8

Hi All,

I use a libname statement to connect to an  odbc .

libname mycc odbc datasrc=myodbc user=myuser password= mypassword;

next i create a temp table in the odbc server using a sas dataset

slow...

poc sql;

create table mycc.'#table1'n  as select customer_id from work.sas_table; quit;

The poblem i face is that odbc temp table gets loaded at a speed of 1000 rows a minute.. which is too slow..

any suggestions on how i could increase the loading speed..

Thanks...

1 REPLY 1
SASKiwi
PROC Star

Try adding the INSERTBUFF = option to your LIBNAME. The default value for ODBC is only 1 according to the documentation, that is one row at a time. You may have to experiment to get the optimal value, but I suggest you try values like  500 or 1000. You may also be restrained by the DBCOMMIT = option where usually the default is 1000. Setting this to 0 means only one commit is made at the end of the load, and this may well help also.

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1 reply
  • 748 views
  • 1 like
  • 2 in conversation