SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 36426: The READBUFF= setting is not honored when certain types of SQL queries are made against a libref in SAS/ACCESS® Interface to Microsoft SQL Server

DetailsHotfixAboutRate It

The setting for the READBUFF= option is not honored in the following situation:

  • In SAS/ACCESS Interface to Microsoft SQL Server, you assign a libref and submit it in combination with the READBUFF= option.
  • You then use the SQL procedure's Pass-Through facility against the libref.

The READBUFF= option, which enables buffered data reads, is specified either in the LIBNAME statement or as a SAS data set option. As a result of internal processing, SAS/ACCESS® Interface to ODBC cannot always perform buffered reads with PROC SQL queries. While no errors are generated in this situation, performance can suffer.

Queries that contain ORDER BY and GROUP BY clauses fall into the category of SQL queries that, when included in PROC SQL pass-through code, cause the software not to honor the BUFFSIZE= setting.

You can use the SASTRACE= option to check the number of rows that are read into the SAS® System per each fetch operation and to verify whether the BUFFSIZE option setting is being honored. For example, if you submit the following OPTIONS statement with the SASTRACE= option at the beginning of your code, the results will be written to the SAS log:

options sastrace=',,,s a' sastraceloc=saslog nostsuffix;

This code yields messages such as the following in the SAS log:

ODBC: Fetch time in seconds for 1 row is 0.000005

This particular message indicates that one row is read at a time, which means means that the buffered-read capability is disabled.

Select the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/ACCESS Interface to Microsoft SQL Server64-bit Enabled AIX9.1 TS1M3 SP49.1 TS1M3 SP4
64-bit Enabled HP-UX9.1 TS1M3 SP49.1 TS1M3 SP4
64-bit Enabled Solaris9.1 TS1M3 SP49.1 TS1M3 SP4
HP-UX IPF9.1 TS1M3 SP49.1 TS1M3 SP4
Linux on Itanium9.1 TS1M3 SP49.1 TS1M3 SP4
Solaris for x649.1 TS1M3 SP49.1 TS1M3 SP4
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.