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:
but we can also set this advanced option in the ODBC setup.
Do we have to set it in both?
Thx.
@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):
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.
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.
@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):
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.
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
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
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.