Using Type Indicators When Getting and Setting Data

OLE DB Programmer's Reference

Most consumers, when they allocate memory in which to get or set data, use the type corresponding to the indicator returned by IColumnsInfo::GetColumnInfo for the column. When a consumer gets or sets data according to the type returned by GetColumnInfo, the provider guarantees it can always transfer the data safely. The consumer specifies this indicator in the wType element of the DBBINDING structure used to bind the memory.

The consumer can allocate and bind memory of a different type only if the provider supports conversion between that type and the type returned by GetColumnInfo. For more information, see "Data Type Conversion," later in this chapter.

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