SUPPORT / SAMPLES & SAS NOTES
 

Support

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

DetailsHotfixAboutRate It

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

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS Drivers for ODBCMicrosoft Windows Server 2003 Standard Edition9.1 TS1M3 SP49.1 TS1M3 SP4
Microsoft Windows XP Professional9.1 TS1M3 SP49.1 TS1M3 SP4
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M3 SP49.1 TS1M3 SP4
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M3 SP49.1 TS1M3 SP4
Microsoft Windows 2000 Server9.1 TS1M3 SP49.1 TS1M3 SP4
Microsoft Windows 2000 Advanced Server9.1 TS1M3 SP49.1 TS1M3 SP4
Microsoft Windows 2000 Datacenter Server9.1 TS1M3 SP49.1 TS1M3 SP4
Microsoft Windows 2000 Professional9.1 TS1M3 SP49.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.