DBPROP_COL_ISLONG

OLE DB Programmer's Reference

Property group: Column

Property set: DBPROPSET_COLUMN

Type: VT_BOOL

Typical R/W: R/W

Description: Is Long

Indicates whether a column can contain a long value.

Value Meaning
VARIANT_TRUE The column can contain a long value, and pwszTypeName in the DBCOLUMNDESC structure is not required to be specified.

If pwszTypeName is not specified, the provider determines the best underlying type as follows:

  • If wType is a fixed length type, creates a column using the best match provider type for that DBTYPE.
  • If wType is a variable length type, the provider looks at the ulColumnSize, bPrecision, and bScale—as well as DBPROP_COL_FIXEDLENGTH, DBPROP_COL_ISLONG, and any other column properties—to determine the best-fit provider type.
Note   Some 2.0 providers may not support leaving pwszTypeName unspecified. Also, to ensure a specific type, the consumer must specify that type explicitly. (This is true for all providers.)

If pwszTypeName is specified, the provider uses wType, ulColumnSize, bPrecision, and bScale—as well as DBPROP_COL_FIXEDLENGTH, DBPROP_COL_ISLONG, and any other column properties—to verify that the selected pwszTypeName matches the specified values.

VARIANT_FALSE The column cannot contain a long value.

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