Unit 'msesqlquery' Package
[Overview][Types][Classes][Procedures and functions][Index] [#msegui]

tsqlquery.UsePrimaryKeyAsKey

When True (the default), the primary key field(s) automatically get of_InKey added to optionsfield (the pfInKey equivalent), so they are used in the "where" part of the update statement

Declaration

Source position: msesqlquery.pas line 270

published property tsqlquery.UsePrimaryKeyAsKey : Boolean
  read FUsePrimaryKeyAsKey
  write SetUsePrimaryKeyAsKey;

Description

When True (the default), the primary key field(s) automatically get of_InKey added to optionsfield (the pfInKey equivalent), so they are used in the "where" part of the update statement — whether the field is persistent or not. A calculated field must still have of_InUpdate removed from optionsfield manually to be excluded from the update statement. Also determines whether IndexDefs is populated.


Documentation generated on: 2026-10-03