A colleague showed me an easy fix today which requires a simple (temporary) change to the database options.
Simply follow these steps (but bear in mind that you are following this advice at your own risk)
- Ensure you have a FULL backup of the database because you will be essentially "breaking" the full transaction log by carrying out this procedure.
- Right click the database and choose PROPERTIES, then click on Options
- Change the Recovery Model to ‘Simple
- Click OK
- Right click the DB, select Tasks > Shrink > Files
- Select ‘Log’ under file type
- Under shrink action, select ‘Reorganize pages…” and then set the new size to shrink the log down to
- Click OK and your database log file will be resized.
- Be sure to change the Recovery Model back to ‘FULL’ when completed’
No comments:
Post a Comment