Truncating a Replicated Table in a Classic Replication Scheme
You can use TRUNCATE TABLE
to delete all of the rows of a table
without dropping the table itself. Truncating a table is faster than using a DELETE
FROM
table statement.
Truncate operations on replicated tables are replicated and result in truncating the table on the subscriber database. Unlike delete operations, however, the individual rows are not deleted. Even if the contents of the tables do not match at the time of the truncate operation, the rows on the subscriber database are deleted anyway.
The TRUNCATE
statement replicates to the subscriber, even when no rows are operated upon.
When tables are being replicated with timestamp conflict checking enabled, conflicts are not reported.