FIX: Columns Properties Shows Numeric Codes Under "Data Type" (156006)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
This article was previously published under Q156006 SYMPTOMS
Properties for table columns in Data View show numeric codes under Data
Type in the Column Properties dialog box. The Type field of the same dialog
box displays the text version of the column type.
CAUSE
The ODBC API SQLGetTypeInfo returns these numbers. The return code is
displayed without displaying the constant name for the SQL data type
(SQL_CHAR, SQL_INTEGER, and so on).
RESOLUTION
Open the header file Sql.h, which lists the constant names for the SQL data
type codes, in the MSDEV\include subdirectory. A partial list is given
below:
/* Standard SQL datatypes, using ANSI type numbering */
#define SQL_CHAR 1
#define SQL_NUMERIC 2
#define SQL_DECIMAL 3
#define SQL_INTEGER 4
#define SQL_SMALLINT 5
#define SQL_FLOAT 6
#define SQL_REAL 7
#define SQL_DOUBLE 8
#define SQL_VARCHAR 12
..
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article. This problem has been fixed in
Visual C++ version 5.0.
Modification Type: | Major | Last Reviewed: | 7/31/2001 |
---|
Keywords: | kbbug kbEEdition kbprb kbProgramming KB156006 |
---|
|