SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 62722: SQL Server tables with the NVARCHAR(MAX) data type are loaded slowly when you use a caslib

DetailsHotfixAboutRate It

In SAS/ACCESS® Interface to ODBC or SAS/ACCESS® Interface to Microsoft SQL, tables that contain the NVARCHAR(MAX) data type are loaded into SAS® Cloud Analytic Services (CAS) slowly.

When sampling the data in SAS® Visual Analytics, you see this error:

An unexpected error has occurred.

When loading data into CAS, you might receive this warning:

WARNING: WARNING: [SAS][ODBC SQL Server Wire Protocol driver]String data, right truncated. Error in column 1.
 

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

After you apply the hot fix, specify this option when loading the table. Set the blobThreshold value to the length of your longest column, as shown here:

options=(blobThreshold=2048)

SAS does some performance tuning and quickly loads your table containing NVARCHAR(MAX).



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Data Connector to Microsoft SQL ServerLinux for x64V.03.03V.03.05ViyaViya
SAS SystemSAS Data Connector to ODBCLinux for x64V.03.03V.03.05ViyaViya
* 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.