admin get_generation

Retrieves the generation number for a primary database.

Syntax

admin get_generation, data_server, database

Parameters

Examples

Usage

  • The database generation number is the first 2 bytes of the origin queue ID generated by a RepAgent for log records. The generation number is a parameter of the Log Transfer Language (LTL) distribute command.

  • The generation number should be incremented following a load for the primary database. Incrementing the number prevents Replication Server from ignoring (as duplicates) any transactions applied after the load.

  • Increment the generation number by executing Adaptive Server dbcc settrunc in the Adaptive Server database.

Permissions

Any user may execute this command.

Related reference
dbcc settrunc