TruncateData Method (SQL-DMO)

The TruncateData method deletes all rows from the referenced table as a nonlogged operation.

Applies To

Table Object

Syntax

object.TruncateData( )

Part Description
object Expression that evaluates to an object in the Applies To list

Remarks

Nonlogged operations make no entry in a database transaction log. After a nonlogged operation, a backup of the transaction log does not protect database integrity. After performing a nonlogged operation, a database backup should be performed to capture an image of the database. For more information, see Backing Up Nonlogged Operations.

Prototype (C/C++)

HRESULT TruncateData();


(c) 1988-98 Microsoft Corporation. All Rights Reserved.