MDAC 2.5 SDK - OLE DB Programmer's Reference
Appendix C: OLE DB Properties


 

DBPROP_COL_AUTOINCREMENT

Property group: Column

Property set: DBPROPSET_COLUMN

Type: VT_BOOL

Typical R/W: R/W

Description: Autoincrement

Indicates whether the values of the column are autoincrementing.

Value Meaning
VARIANT_TRUE The values of the column are autoincrementing.
VARIANT_FALSE The values of the column are not autoincrementing.

If this property is read-only, whether or not a column is autoincrementing is a property of the data type. If this property is read/write, DBPROP_COL_AUTOINCREMENT can be specified for the column, provided the AUTO_UNIQUE_VALUE property of the underlying data type is VARIANT_TRUE in the PROVIDER_TYPES schema rowset.