Partager via


TruncateData Method

Cette fonctionnalité sera supprimée dans une prochaine version de Microsoft SQL Server. Évitez d'utiliser cette fonctionnalité dans de nouveaux travaux de développement et prévoyez de modifier les applications qui utilisent actuellement cette fonctionnalité.

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

Syntaxe

object
.TruncateData(
)

Parts

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

Prototype (C/C++)

HRESULT TruncateData();

Notes

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.

Applies To: