LOG TRUNCATION AND DBCC SHRINKFILE

  • HAI,

    Every Weekend we used to do Log Truncation and DBCC Shrinkfile (if required) on all databases.

    I just want to know that, is there any system table which used to track all these operations (like all backup operations are logged in system tables like backupset,backumediaset etc...)

    Please comment


    subban

  • When you truncate log, it's logged in the SQL server ErrorLog file.

    You can also get the information in master..sysperfinfo.

    Object_name: SQLServeratabases

    Counter: Log Truncations and Log Shrinks  

    Instance name: the database name you are monitoring.

    You can set up a job to capture these events. The table does not keep historical data, it only keeps the current value.

     

     

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply