TruncateData Method
未來的 Microsoft SQL Server 版本將移除這項功能。請避免在新的開發工作中使用這項功能,並規劃修改目前使用這項功能的應用程式。
The TruncateData method deletes all rows from the referenced table as a bulk-logged operation.
語法
object.TruncateData()
Parts
- object
Expression that evaluates to an object in the Applies To list.
Prototype (C/C++)
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.