SDAC

TMSLastIdentityValueFunction Enumeration

Determines which system function to use to obtain an identifier when adding a record.

Unit

MSClasses

Syntax

TMSLastIdentityValueFunction = (vfScopeIdentity, vfIdentCurrent, vfIdentity);

Values

Value Meaning
vfIdentCurrent The IDENT_CURRENT system function is used. It returns the last identity value generated for a specified table or view. The last identity value generated can be for any session and any scope.
vfIdentity The @@IDENTITY system function is used. It returns the last-inserted identity value.
vfScopeIdentity The SCOPE_IDENTITY system function is used. It returns the last identity value inserted into an identity column in the same scope. A scope is a module: a stored procedure, trigger, function, or batch.

© 1997-2019 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback