SQL Server: Hidden risks of using DBCC SHRINKFILE

SDReyes picture SDReyes · Sep 8, 2010 · Viewed 8.3k times · Source

We're getting a huge LDF file by using a full recovery mode in a SQL Server DB. so we're planning to shrink the log file.

Is there any performance penalty for using DBCC SHRINKFILE to reduce the database log file size (LDF)?

and what about applying it to the data file (MDF)?

Answer

Sidharth Panwar picture Sidharth Panwar · Sep 8, 2010

I think this should be helpful: http://www.mssqltips.com/tip.asp?tip=2055