I have a sql2014 database that I use Ola Hallengren Index Optimizer that runs every day at 2:45 in the morning to help keep the data properly maintained. The issue I have is I have a couple of tables that are rather large in this database and when it runs it causes the log file to grow to over 20GB and 125 VLFs and when completed is only used 2%. The one solution I thought of would be to run DBCC SHRINKFILE on the log as the second step of the SQL Job. Would this be the best practice or is there some other option I should use.
↧