SQL Server log file is too big

5 pts.
Tags:
Log files
SQL Server 2008
We are using SQL Server 2008 with full recovery model, the database size is 10 GB and the log file is 172 GB, we want to clear up the space of the log file internally, we did transaction log file backup it should be clear up , but it still 172 GB. What to do?
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

If you did the tranlog backup then the space in the file should free up. The file will not unless you shrink the file. If you right click on the database in SSMS and select Shrink then change it from database to files, then select log, you will see how much of the log is used and how much is free. You can shrink the log file at that screen. Just be sure that you want to do this. If you are doing regular tran log backups and the file is growing to that size then you might need that much space. You do not want to shrink the file and then have to incur the overhead of the file growth again.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • edwinjhoffer
    you can create a new log file for the database on a different disk that has enough space by using the ALTER DATABASE YourDatabaseName ADD LOG FILE syntax.
    3,740 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: