Export (0) Print
Expand All

TruncateData Method

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

The TruncateData method deletes all rows from the referenced table as a bulk-logged operation.


object
.TruncateData(
)

object

Expression that evaluates to an object in the Applies To list.

HRESULT TruncateData();

Bulk-logged operations make no entry in a database transaction log. After a bulk-logged operation, a backup of the transaction log does not protect database integrity. After performing a bulk-logged operation, a database backup should be performed to capture an image of the database. For more information, see Selecting a Recovery Model.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft