dbcc settrunc

Description

A Transact-SQL command that modifies the secondary truncation point information for an Adaptive Server database.

Syntax

dbcc settrunc('ltm', {'valid' | 'ignore'})
dbcc settrunc('ltm', 'gen_id', db_generation)

Parameters

valid

Instructs Adaptive Server to respect the secondary truncation point. This option prevents the Adaptive Server from truncating transaction log records that have not been transferred to Replication Server.

ignore

Instructs Adaptive Server to ignore the secondary truncation point. This allows Adaptive Server to truncate log records that the RepAgent has not yet transferred to the Replication Server.

gen_id

Instructs Adaptive Server to reset the database generation number in the log.

db_generation

The new database generation number. Increment the number after restoring dumps to prevent Replication Server from rejecting new transactions as duplicates.

WARNING! You cannot execute dbcc settrunc when RepAgent is running.

Usage

See also

admin get_generation, dbcc dbrepair, rs_subcmp, rs_zeroltm, sp_config_rep_agent