![]() | ![]() | ![]() | ![]() | ![]() |
An incorrect data type might be specified when you create a DBMS table with the LIBNAME statement in the SAS/ACCESS Interface to OLE DB, using either the Informix OLE DB Provider or the Oracle 10g Provider.
To demonstrate this behavior, assign the OLEDB libref to Informix or Oracle and submit a SAS DATA step to create a DBMS table.
If you submit the following OPTIONS statement to turn on SAS tracing, you can see the underlying SQL statements that are generated by the DATA step code. The CREATE TABLE statement specifies the data type INTERVAL, which is incorrect, and the SAS processing halts with errors:
libname oleinfx oledb preserve_tab_names=yes preserve_col_names=yes autocommit=yes, provider=ifxoledbc prompt=no datasource='people@online20' schema=dbitest user=dbitest password="{sas001}ZGJpZ3JwMQ==" ; data oleinfx.OLEDBInfxJob11Outx; attrib surrogate_key length=8 label='Surrogate/Retained Key'; attrib ssn length=$9 label='Social Security'; attrib first_name length=$15 label='First Name'; attrib last_name length=$15 label='Last Name'; attrib address length=$50 label='Address'; attrib phone length=$12 label='Phone Number'; attrib email length=$30 label='Email Address'; attrib current_indicator length=8 label='Current Indicator'; stop; run; Debug info for creating table in the log: OLEDB_36: Executed: CREATE TABLE "dbitest"."OLEDBInfxJob11Outx" ("surrogate_key" float,"ssn" interval day to fraction(4),"first_name" varchar(15),"last_name" varchar(15),"address" varchar(50),"phone" interval day to fraction(4),"email" varchar(30),"current_indicator" float)
Select the Hot Fix tab in this note to access the hot fix for this issue.
Product Family | Product | System | SAS Release | |
Reported | Fixed* | |||
SAS System | SAS/ACCESS Interface to OLE DB | Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |
Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | 9.2 TS1M0 | ||
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS1M0 | ||
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | 9.2 TS1M0 | ||
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | 9.2 TS1M0 | ||
Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | 9.2 TS1M0 | ||
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | 9.2 TS1M0 | ||
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | 9.2 TS1M0 | ||
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | 9.2 TS1M0 | ||
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | 9.2 TS1M0 | ||
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | 9.2 TS1M0 |