SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 50276: Bulk loading dates fails when you use the SQL Server Native Client 10 ODBC driver

DetailsHotfixAboutRate It
When you write a date data type to the SQL Server using the BULKLOAD=yes LIBNAME option and the SQL Server Native Client 10 ODBC driver, an error might occur:
libname mydb odbc DSN='SQL_DSN' schema='dbo' user='SQLUser' password=SQLPwd BULKLOAD=YES DBCOMMIT = 10000; data mydb.newtable; set work.test; run; NOTE: SAS variable labels, formats, and lengths are not written to DBMS tables. ERROR: CLI execute error: [Microsoft][SQL Server Native Client 10.0]Invalid character value for cast specification NOTE: The SAS System stopped processing this step because of errors.

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



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS/ACCESS Interface to ODBCMicrosoft® Windows® for x649.39.49.3 TS1M19.4 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.39.3 TS1M1
Microsoft Windows Server 2003 Enterprise Edition9.39.3 TS1M1
Microsoft Windows Server 2003 Standard Edition9.39.3 TS1M1
Microsoft Windows Server 2003 for x649.39.3 TS1M1
Microsoft Windows Server 20089.39.3 TS1M1
Microsoft Windows Server 2008 R2 for x649.39.49.3 TS1M19.4 TS1M0
Microsoft Windows Server 2008 for x649.39.49.3 TS1M19.4 TS1M0
Microsoft Windows XP Professional9.39.3 TS1M1
Windows 7 Enterprise 32 bit9.39.3 TS1M1
Windows 7 Enterprise x649.39.49.3 TS1M19.4 TS1M0
Windows 7 Home Premium 32 bit9.39.3 TS1M1
Windows 7 Home Premium x649.39.3 TS1M1
Windows 7 Professional 32 bit9.39.3 TS1M1
Windows 7 Professional x649.39.49.3 TS1M19.4 TS1M0
Windows 7 Ultimate 32 bit9.39.3 TS1M1
Windows 7 Ultimate x649.39.3 TS1M1
Windows Vista9.39.3 TS1M1
Windows Vista for x649.39.3 TS1M1
* 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.