SQL log file size is very big in our production database and hard disk space left only 2G. Is it safe to delete .ldf file?
Advertisement
Answer
Check out this post
In the interim, this should at least allow you to kill the log file:
- Perform a full backup of your database. Don’t skip this. Really.
- Change the backup method of your database to “Simple”
- Open a query window and enter “checkpoint” and execute
- Perform another backup of the database Change the backup method of your database back to “Full” (or whatever it was, if it wasn’t already Simple)
- Perform a final full backup of the database.