Learn More





Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...SQL and SQL Ser...SQL and SQL to empty Log filehow to empty Log file
New Post
6/11/2014 3:47 AM


I use dnn722

My database is 41Mb
The database has an logfile.
This logfile is now big in size (91mb).
I have truncate the logfile on my server, however this does not shrinking this file.
When I perform a backup, then the logfile is not shrinking also.
- Is there any way I can empty this logfile?
- Does this logfile slow down the website?

Regards, Ton Hermes

Art is hard work, inspiration is the cream on top of it. See my watercolors at and my enamel art at
New Post
6/11/2014 4:15 AM

91 MB is not too large for a log file - be aware that the transaction log is not only used to store all changes since last backup (in Full Backup mode), but also all open transactions. this might prevent the log to be truncated to the minimum size specified in database file settings, you would need to stop the app pool to close all connections first.

Regarding performance, the current size shouldn't be a big issue. You may also consider switching to Backup mode simple, if you don't mind to loose a few hours of changes since last backup in case you need to perform a restore.

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group   European Network of DotNetNuke Professionals

Speed up your DNN Websites with TurboDNN
New Post
6/12/2014 4:32 PM
as Sebastian says, the log file may contain entries depending on the recovery model/current log state. However, log files are often mostly empty as sql assumes that it will likely need a similar amount of log space before the file is again truncated - you can use DBCC statements to shrink the file, but that is something you should only do when there is no activity as it will often block queries, see for more background and links to the relevant DBCC commands

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
HomeHomeDevelopment and...Development and...SQL and SQL Ser...SQL and SQL to empty Log filehow to empty Log file

These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
Try Evoq
For Free
Start Free Trial
a Demo
See Evoq Live
Need More Information?