Provider-Specific Rowset Properties

Advantage OLE DB Provider (for ADO)

  Previous topic Next topic  

 

The provider-specific property set DBPROPSET_ADSROWSET includes the following properties.

Property ID

Description

ADSPROP_LAST_AUTOINC

Type: VT_UI4

Typical R/W: Read-only

Description: Last AutoInc

Returns the last AutoIncrement value created by the most recent SQL INSERT statement on a specific command object. This value is only meaningful for command objects and only after an INSERT is performed on a table that has an AutoIncrement field. It is guaranteed to return the AutoIncrement value associated with the most recent INSERT on the command object even if other users have subsequently inserted records into the table. The property can be accessed from a command object in ADO through the property name.

ADSPROP_ROWSET_HANDLE

Type: VT_UI4

Typical R/W: Read-only

Description: Advantage Client Engine Table or Cursor Handle

Returns the Advantage Client Engine table or cursor handle. After opening a table directly or opening a cursor via an SQL SELECT statement, the underlying table/cursor handle used by the Advantage Client Engine can be retrieved and used as a parameter to any Advantage Client Engine Ads* API that accepts a table or cursor handle.