SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 59234: When you use PROC APPEND to update a Microsoft SQL Server NVARCHAR or NCHAR field, "ERROR: Error binding parameters...invalid precision value" occurs

DetailsHotfixAboutRate It

When you submit APPEND procedure code to update an NVARCHAR or NCHAR field, the following error might occur:

ERROR: Error binding parameters: [Microsoft][XXX]Invalid precision value

This problem occurs when the following conditions are true:

  • You are running a Unicode SAS® session (UTF-8 encoding).
  • You assign the Open Database Connectivity (ODBC) library to a Microsoft SQL Server using the SQL Server Native Client 11.0 or the SQL Server ODBC driver.
  • The NVARCHAR or NCHAR fields that you are updating has a length greater than 1333 characters.

There are two possible workarounds for this issue:

  • Limit the length of the NVARCHAR or NCHAR fields to less than 1333 characters.
  • Redefine the NVARCHAR or NCHAR fields from within the database to NVARCHAR(MAX) or NCHAR(MAX), respectively.

Click 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 ODBCWindows 7 Ultimate x649.4 TS1M39.4 TS1M5
Windows 7 Ultimate 32 bit9.4 TS1M39.4 TS1M5
Windows 7 Professional x649.4 TS1M39.4 TS1M5
Windows 7 Professional 32 bit9.4 TS1M39.4 TS1M5
Windows 7 Home Premium x649.4 TS1M39.4 TS1M5
Windows 7 Home Premium 32 bit9.4 TS1M39.4 TS1M5
Windows 7 Enterprise x649.4 TS1M39.4 TS1M5
Windows 7 Enterprise 32 bit9.4 TS1M39.4 TS1M5
Microsoft Windows Server 2012 Std9.4 TS1M39.4 TS1M5
Microsoft Windows Server 2012 R2 Std9.4 TS1M39.4 TS1M5
Microsoft Windows Server 2012 R2 Datacenter9.4 TS1M39.4 TS1M5
Microsoft Windows Server 2012 Datacenter9.4 TS1M39.4 TS1M5
Microsoft Windows Server 2008 for x649.4 TS1M39.4 TS1M5
Microsoft Windows Server 2008 R29.4 TS1M39.4 TS1M5
Microsoft Windows Server 20089.4 TS1M39.4 TS1M5
Microsoft Windows 109.4 TS1M39.4 TS1M5
Microsoft Windows 8.1 Pro x649.4 TS1M39.4 TS1M5
Microsoft Windows 8.1 Pro 32-bit9.4 TS1M39.4 TS1M5
Microsoft Windows 8.1 Enterprise x649.4 TS1M39.4 TS1M5
Microsoft Windows 8.1 Enterprise 32-bit9.4 TS1M39.4 TS1M5
Microsoft Windows 8 Pro x649.4 TS1M39.4 TS1M5
Microsoft Windows 8 Pro 32-bit9.4 TS1M39.4 TS1M5
Microsoft Windows 8 Enterprise x649.4 TS1M39.4 TS1M5
Microsoft Windows 8 Enterprise 32-bit9.4 TS1M39.4 TS1M5
Microsoft® Windows® for x649.4 TS1M39.4 TS1M5
* 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.