The RemoveAllLogRecords method removes all package, step, and task log records from the database associated with the PackageSQLServer object.
object.RemoveAllLogRecords( )
Part | Description |
---|---|
object | Expression that evaluates to a PackageSQLServer object |
Log records are written to the msdb database on the instance of Microsoft® SQL Server™ specified by the package LogServerName property each time a Data Transformation Services (DTS) package is executed, if the package LogToSQLServer property has been set. The RemoveAllLogRecords method removes these records for all packages from the database.
HRESULT RemovePackageLogRecords( );
RemovePackageLogRecords Method