sysadmin set_dsi_generation

Changes a database generation number in the Replication Server to prevent the application of transactions in the DSI stable queue after a replicate database is restored.

Syntax

sysadmin set_dsi_generation, gen_number, primary_data_server,
       primary_database, replicate_data_server, replicate_database

Parameters

Examples

Usage

Use sysadmin set_dsi_generation during the recovery of a database dump. Changing the generation number except during recovery may cause incorrect data at replicate databases.

See the Replication Server Administration Guide Volume 2 for a complete description of the recovery procedure.

Permissions

sysadmin set_dsi_generation requires “sa” permission.

Related reference
admin get_generation
configure connection
dbcc dbrepair
dbcc settrunc
rebuild queues