BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Wiki-Ben
Calcite | Level 5

Hi,

We are looking to improve data inserts in a SQL Server database (ODBC). In the SAS server connection, we have the advanced option to set 'Bulk Load' to Yes:

 

WikiBen_0-1776344703719.png

 

but we can also set this advanced option in the ODBC setup.

 

Do we have to set it in both?

 

Thx.

1 ACCEPTED SOLUTION

Accepted Solutions
Patrick
Opal | Level 21

@Wiki-Ben The screen shot looks like DI Studio. Correct?

I've asked Copilot 365 about performance when using bulkload=yes with SAS Access to ODBC and the answer was interesting (though don't know if correct):

Patrick_0-1776503449212.png

 

So just based on the Copilot answers, it's likely better to go with what @SASKiwi proposed (increase the insertbuff value, set dbcommit=0).
If you are using SAS Access to SQL Server then of course bulkload=yes could might make a difference, especially when loading into an empty table.

Bulkload=yes can be a libname or even a dataset option and though I would assume setting it in DIS will be sufficient on any level.
 

 

View solution in original post

4 REPLIES 4
SASKiwi
PROC Star

You should also try setting the INSERTBUFF option as the default value is not optimal. Try INSERTBUFF = 10000 as a starting point but feel free to experiment with higher or lower values.

LinusH
Tourmaline | Level 20
I don't have the "Bulk Load" tab in my advanced settings, probably because we are using SAS/ACCESS to SQL Server, not ODBC. I'm on 9.4M8 Linux.
Not sure what you refer to when you say "advanced option in ODBC set up". Do you mean ODBC Manager (Ican't fins an advanced option here)?
I think it should be enough to set it on the libname, the important thing is to generate the BULKLOAD=YES when your LIBNAME statement is being generated.
Data never sleeps
Patrick
Opal | Level 21

@Wiki-Ben The screen shot looks like DI Studio. Correct?

I've asked Copilot 365 about performance when using bulkload=yes with SAS Access to ODBC and the answer was interesting (though don't know if correct):

Patrick_0-1776503449212.png

 

So just based on the Copilot answers, it's likely better to go with what @SASKiwi proposed (increase the insertbuff value, set dbcommit=0).
If you are using SAS Access to SQL Server then of course bulkload=yes could might make a difference, especially when loading into an empty table.

Bulkload=yes can be a libname or even a dataset option and though I would assume setting it in DIS will be sufficient on any level.
 

 

Wiki-Ben
Calcite | Level 5

Thank you all for your input,

 

@Patrick Used with SAS code (Libname/proc sql/data xxx) SAS Help Center: INSERTBUFF= Data Set Option

 

I guess test and trial will be the key here.

 

Thank you again,

 

Yvan

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

Learn how to explore data assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 390 views
  • 0 likes
  • 4 in conversation