• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 264
  • 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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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