Library-Supported Data Type Conversions

OLE DB Programmer's Reference

The OLE DB Data Conversion Library supports a limited set of conversions among OLE DB data types. For example, the DBTYPE_BYREF modifier is supported only on the destination type for variable-length data types (DBTYPE_BYTES, DBTYPE_STR, DBTYPE_VARNUMERIC, and DBTYPE_WSTR).

Note   Supported data conversions can be determined through the CanConvert method of the IDataConvert interface.

Click an entry in the following table to see the supported data type conversions.

Convert from data type:

I1 I2 I4 I8
UI1 UI2 UI4 UI8
R4 R8 BOOL ERROR
BSTR STR WSTR BYTES
DATE DBDATE DBTIME DBTIMESTAMP
FILETIME GUID CY DECIMAL
NUMERIC VARNUMERIC VARIANT PROPVARIANT
IDispatch IUnknown    

1998-2001 Microsoft Corporation. All rights reserved.



Microsoft Ole Db 2.0 Programmer's Reference and Data Access SDK
Microsoft OLE DB 2.0 Programmers Reference and Data Access SDK (Microsoft Professional Editions)
ISBN: 0735605904
EAN: 2147483647
Year: 1998
Pages: 1083

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net