rs_truncate

Description

Truncates a table in a replicate database.

Examples

Example 1

Replaces the existing rs_truncate function string for the authors table with one that executes a Transact-SQL delete command, which logs all deletions, instead of the truncate table command, which does not log deletions.

alter function string authors.rs_truncate
 for sqlserver_derived_class
 output language
 'delete authors'

You would want to customize the rs_truncate function string for the authors table, if:

Usage

See also

alter function string, rs_datarow_for_writetext, rs_get_textptr, rs_insert, rs_delete, rs_textptr_init, rs_writetext, set autocorrection