• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 266
  • Last Modified:

How trancate log files in simple mode?

I  don't plan on doing point in time recovery on my databases, so the recovery mode is "Simple". The transaction logs are suppose not to get so large.  However, the log files are still are big, even when I have allocated 200 MB and errors in the SQL Server occur. How can I truncate the log files when in simple mode?
2 Solutions
Aneesh RetnakaranDatabase AdministratorCommented:
DBCC SHRINKFILE (databaseLogFile, 10)
Guy Hengel [angelIII / a3]Billing EngineerCommented:
you want to shrink the file.
use this syntax:

DBCC SHRINKFILE your_log_file

also, check out:


while connected to your database to see if you have any old open transactions
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now