Click to Rate and Give Feedback
Microsoft Host Integration Server 2004
Default OLE DB Data Types

The following table indicates the default OLE DB data types that result from the mapping of the host data types by the Microsoft OLE DB Provider for AS/400 and VSAM.

Host data typeOLE DB data typeComments
BinaryDBTYPE_BYTESA fixed-length array of bytes (unsigned char).
CharacterDBTYPE_STRNull-terminated ASCII character string.
DateDBTYPE_DBDATEThe DBDATE typedef struct defined in OLEDB.H header file.
DBCSDBTYPE_STRNull-terminated ASCII character string.
DCBS – Mixed EitherDBTYPE_STRNull-terminated ASCII character string.
DCBS – Mixed OpenDBTYPE_STRNull-terminated ASCII character string.
DBCS – VariableDBTYPE_STRNull-terminated ASCII character string.
DCBS – Variable Mixed EitherDBTYPE_STRNull-terminated ASCII character string.
DCBS – Variable Mixed OpenDBTYPE_STRNull-terminated ASCII character string.
DoubleDBTYPE_R88-byte floating-point data.
FloatDBTYPE_R88-byte floating-point data.
Long IntegerDBTYPE_I44-byte signed integer.
Long Variable BinaryDBTYPE_BYTESA fixed-length array of bytes (unsigned char).
Long Variable CharacterDBTYPE_STRNull-terminated ASCII character string.
PackedDBTYPE_DECIMALThe DECIMAL structure typedef defined in OLEDB.H. This is an exact numeric value with a fixed precision and fixed scale.
RealDBTYPE_R44-byte floating-point data.
ShortDBTYPE_I22-byte signed integer.
SingleDBTYPE_R44-byte floating-point data.
TimeDBTYPE_DBTIMEThe DBTIME typedef defined in OLEDB.H header file.
Time StampDBTYPE_DBTIMESTAMPThe DBTIMESTAMP typedef defined in OLEDB.H header file.
Variable BinaryDBTYPE_BYTESA fixed-length array of bytes (unsigned char).
Variable CharacterDBTYPE_STRNull-terminated ASCII character string.
ZonedDBTYPE_NUMERICThe NUMERIC typedef structure defined in OLEDB.H. This is an exact numeric value with a fixed precision and fixed scale.

The host Binary, VarBinary, and Long VarBinary data types are converted to SQL_C_CHAR type by the DDM DLL and mapped to the DBTYPE_BYTES data type by the SNAOLEDB DLL. The host Zoned data type is converted to SQL_C_CHAR type by the DDM DLL and mapped to the DBTYPE_NUMERIC data type by the SNAOLEDB DLL. The host Packed data type is converted to SQL_C_CHAR type by the DDM DLL and mapped to the DBTYPE_DECIMAL data type by the SNAOLEDB DLL.

To download updated Host Integration Server 2004 Help from www.microsoft.com, go to http://go.microsoft.com/fwlink/?linkid=29507.

Copyright © 2004 Microsoft Corporation.
All rights reserved.
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker