![]() | ![]() | ![]() | ![]() | ![]() |
An incorrect WHERE condition might be generated when you use the SQL procedure to query a database table. The problem occurs when both of the following conditions apply:
Note: Column positions can easily differ between these two tables due to changes such as columns being hidden or being manually moved or deleted.
The problem occurs because the PROC SQL query applies column attributes to a database column based on the column's position in the metadata table. When the attributes do not match, such as when a datetime format is matched with a character data type, an error might also occur.
Note: The error that is returned varies depending on what database you are using.
To circumvent the problem, use the native LIBNAME engine for the database such as ORACLE, TERADATA, GREENPLM, OLEDB, or HADOOP.
If you must use the META engine, you can circumvent the problem by completing the following steps to arrange the columns in the metadata table to match the order of the columns in the database table:
Click the Hot Fix tab in this note to access the hot fix for this issue.
The hot fix addresses the problem for Greenplum only.
Refer to the Fixed column of the Operating System and Release Information table below to find the release number in which this problem is addressed for your database.
Product Family | Product | System | SAS Release | |
Reported | Fixed* | |||
SAS System | SAS Metadata Server | Microsoft Windows Server 2003 Standard Edition | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS2M0 | |||
Microsoft Windows XP 64-bit Edition | 9.2 TS2M0 | |||
Microsoft® Windows® for x64 | 9.2 TS2M0 | 9.4 TS1M3 | ||
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS2M0 | |||
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS2M0 | |||
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS2M0 | |||
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS2M0 | |||
Microsoft Windows Server 2003 for x64 | 9.2 TS2M0 | |||
Microsoft Windows Server 2008 R2 | 9.2 TS2M0 | 9.4 TS1M3 | ||
Microsoft Windows Server 2008 for x64 | 9.2 TS2M0 | 9.4 TS1M3 | ||
Microsoft Windows XP Professional | 9.2 TS2M0 | |||
Windows Vista | 9.2 TS2M0 | |||
Windows Vista for x64 | 9.2 TS2M0 | |||
64-bit Enabled AIX | 9.2 TS2M0 | 9.4 TS1M3 | ||
64-bit Enabled HP-UX | 9.2 TS2M0 | 9.4 TS1M3 | ||
64-bit Enabled Solaris | 9.2 TS2M0 | 9.4 TS1M3 | ||
HP-UX IPF | 9.2 TS2M0 | 9.4 TS1M3 | ||
Linux | 9.2 TS2M0 | 9.4 TS1M3 | ||
Linux for x64 | 9.2 TS2M0 | 9.4 TS1M3 | ||
Solaris for x64 | 9.2 TS2M0 | 9.4 TS1M3 |