I have a nightly job that monitors database and log file sizes. Over time the databases grow. Last night some databases actually shrank in size. The logs show no SHRINKFILE OR SHRINKDATABASE events. AUTOSHRINK is OFF. Is there any other way these databases could have shrank?
Sql-server – How did the databases shrink
shrinksql server
Related Question
- Sql-server – Shrink Transaction Log While Using AlwaysOn Availability Group
- Sql-server – How to sync databases to a secondary server for read-only usage
- Sql-server – how to find out what process(es) caused the autogrowth of a database or a database file
- Sql-server – Should I run multiple DBCC Shrinkfile if files are in different disk arrays
- Sql-server – MS SQL Server: DBCC ShrinkDatabase – Does it really not shrink the database below the minimum size
- Sql-server – Log file won’t shrink – suggestions
- Sql-server – Shrink log with TRUNCATEONLY but there’s nothing to truncate
Best Answer
You can use the Power of Default Trace to find out the culprit.
provided the default trace files are not rolled over