Problem Note 20456: An error occurs when you connect to the SASĀ® ODBC driver from Microsoft
Access and you query with the MIN or MAX functions
When you connect to SASreg; ODBC driver from Microsoft Access and you run
the query SELECT MIN(MONTH) on SASHELP.PRDSALE or on a Scalable
Performance Data Server (SPDS) data set that is directly linked to the
ODBC driver, you will receive the following error:
[SAS][SAS ODBC Driver]Restricted data type attribute violation
When you use the MIN or MAX functions to perform queries on tables,
Microsoft Access attempts to fetch data from the result using the
original type of the function target. For example, if you use
MIN(SOMEDATE), Access attempts to use the type of SOMEDATE. However,
the MIN and MAX functions return numeric results with no format
information applied, so the results are returned as double-bytes. If
Access requests an unsupported conversion, a failure will occur.
Selecting File ► Get External Data ► Link Tables in Access creates an
error. This error might occur because Access asks for metadata about the
table and gets the type of the MONTH column as the date (or timestamp).
If you select File ► Get External Data ► Import Tables, Access retrieves
all of the data, performs additional operations on the client side, and
returns a result without an error.
Select the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | SAS Drivers for ODBC | Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
*
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.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2007-07-27 10:53:32 |
Date Created: | 2007-06-25 22:32:54 |