BUG: SQLColAttribute Reports Base Type on Aggregate Function

Last reviewed: April 8, 1997
Article ID: Q143227

The information in this article applies to:
  • Microsoft SQL Server, versions 4.21a, 6.0, 6.5
  • Microsoft Open Database Connectivity, version 2.10
BUG#: 12951 (4.21a)

SYMPTOMS

If an ODBC application issues a SELECT that performs an aggregate function (such as AVG, SUM, MAX, and so forth) on a column that was defined with a user-defined data type, SQLColAttributes(SQL_COLUMN_TYPE_NAME) returns the name of the base data type rather than the user-defined data type.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft SQL Server ODBC Driver version 2.00.1912. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

WORKAROUND

You can determine the user-defined data type name for the column using the ODBC SQLColumns function.


Additional query words: SQLExecDirect SQLExecute odbc
Keywords : kbbug4.21a kbinterop SSrvProg
Version : 2.1 4.21a 6.0 6.5
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 8, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.