Turns on or off the “subscribe to truncate table” option for all existing subscriptions to a particular table, enabling or disabling replication of truncate table.
sysadmin apply_truncate_table, <data_server>, <database>, {<table_owner >| '' | ""}, <table_name >{'on'| 'off'}
The name of the replicate data server.
The name of the replicate database managed by the data server.
Identifies the owner of the replicate table. If owner is not specified, Replication Server sets owner to “dbo.”
Identifies the replicate table for which you want to turn on or off the “subscribe to truncate table” option for existing subscriptions.
Turns on the “subscribe to truncate table” option for existing subscriptions.
Turns off the “subscribe to truncate table” option for existing subscriptions.
Turns on “subscribe to truncate table” for all subscriptions to the <publishers> table owned by <emily> in the <pubs2> database:
sysadmin apply_truncate_table, SYDNEY_DS, pubs2, emily, publishers, 'on'
Use sysadmin apply_truncate_table with Adaptive Server version 11.5 or later databases.
If you did not specify a replicate table owner in the replication definition, enter '' (two single-quote characters) or "" (two double-quote characters) for the table owner name.
Subscriptions for a particular table for a particular database must all support or not support replication of truncate table. If, for example, sysadmin apply_truncate_table is off, you cannot create new subscriptions that include the “subscribe to truncate table” option unless you turn sysadmin apply_truncate_table on for all subscriptions for that table.
See create subscription or define subscription for more information about setting the “subscribe to truncate table” option for new subscriptions.
The maintenance user has been granted “sa_role,”
The maintenance user owns the table, or
The maintenance user is aliased as the Database Owner.
It is not necessary for warm standby databases to subscribe to truncate table; execution of the truncate table command is automatically replicated to standby databases. Turn on replication of truncate table for standby databases with the alter logical connection command.