![]() | ![]() | ![]() | ![]() | ![]() |
Using the SAS/ACCESS® Interface to ODBC DBLoad procedure to write to a Microsoft SQL Server Unicode column, SAS defaults to a CHAR variable type. The Windows system locale and SAS session locale are set to the same value—English—but the non-English characters are converted to question marks (????) when written to the ODBC data source.
To use the DBLoad Procedure to write non-Latin1 data to a Microsoft SQL Server Unicode column, use the TYPE statement, as follows:
proc dbload dbms=odbc data=work.customer; dsn=sqldsn; user="userid"; password="password"; table=mytab; type 3 = 'nvarchar(8)'; list all; load; run;
In the preceding code, the third column would be created with a NVARCHAR(8) on the SQL Server side.
Users of the Libname/ODBC Engine statement should specify the DBTYPE Data Set Option.
Product Family | Product | System | SAS Release | |
Reported | Fixed* | |||
SAS System | SAS/ACCESS Interface to ODBC | Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS1M0 | ||
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS1M0 | ||
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS1M0 | ||
Microsoft® Windows® for x64 | 9.1 TS1M3 SP4 | 9.2 TS1M0 | ||
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | 9.2 TS1M0 | ||
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | 9.2 TS1M0 | ||
Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | 9.2 TS1M0 | ||
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | 9.2 TS1M0 | ||
Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |||
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | 9.2 TS1M0 | ||
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | 9.2 TS1M0 | ||
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | 9.2 TS1M0 | ||
Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | 9.2 TS1M0 | ||
Windows Vista | 9.1 TS1M3 SP4 | 9.2 TS1M0 |