DBPROP_COL_DEFAULT

OLE DB Programmer's Reference

Property group: Column

Property set: DBPROPSET_COLUMN

Type: Any

Typical R/W: R/W

Description: Default

A VARIANT specifying the default value for an object—typically a domain or column. If the default value is a string, the string must be quoted so that it can be distinguished from an object of the same name. If the provider supports the PROVIDER_TYPES schema rowset, quoting should use the LITERAL_PREFIX and LITERAL_SUFFIX characters. For example, 'Salary' is a string, but Salary is an object, such as a column.

Specify any VARIANT type except VT_VARIANT (that is, do not nest a VARIANT within a VARIANT). The IDBProperties::GetPropertyInfo method will report the type of this property as VT_VARIANT.

If a column data type is an OLE DB data type that cannot be used in a VARIANT, set the default to a VARIANT type for which OLE DB defines a conversion (that is, a coercion) and which the provider also supports.

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