Leave datasource and datafield empty to only fetch the sequence value on demand (e.g. read it from asinteger/ aslargeint in the dataset's onbeforepost) instead of consuming a new sequence value on every insert attempt
Source position: msesqldb.pas line 509
published property tsequencelink.datasource : tdatasource |
Leave datasource and datafield empty to only fetch the sequence value on demand (e.g. read it from asinteger/ aslargeint in the dataset's onbeforepost) instead of consuming a new sequence value on every insert attempt — useful when an insert can be aborted, since a bound field would otherwise waste a value each time.