PrimaryKey Object

The PrimaryKey object represents the descriptor of primary key for a table of external database. The object PrimaryKey always belongs to the Table::PrimaryKeys collection. Access to collection items is possible both by name and by internal number. The collection provides continuity of descriptor numbers. Persistence of descriptor's internal number is guaranteed within a session of external database. Adding to and removing from the collection is not possible. If an ODBC data source does provide information about primary keys in a table, the collection will be empty.