Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Best Practice... DNN SQL Log FilesBest Practice... DNN SQL Log Files
Previous
 
Next
New Post
4/10/2006 1:32 AM
 

What is the best practice on setting up the SQL database for DotNetNuke?  I have noticed that my SQL log files have grown to over 1 gigabyte in size, even though the actual database MDF is very small. 

I have tried limiting the growth of log files, but that causes the website to crash.  I have tried shrinking the database, but that doesn't do anything about the log files.  How are some of you guys maintaining your log files?  Is the best practice detaching the database, deleting the log file, and then reattaching the database?  I would like to automate the process if possible.

 
New Post
11/3/2008 2:21 PM
 

Man, I would love to hear if there's a good answer to this.  Our DB seems to be growing out of control, and we don't really know what to do to manage it.  Part of our issue is that our host doesn't allow easy access to the DNN DB. 

I wish there were more tips and tricks out here for management.  I have a very limited knowledge of SQL, so it would be nice if there were some general DB management and troubleshooting advice here.  I'm going to keep looking for some, but so far I haven't seen anything other than this post with no responses!

 
New Post
11/3/2008 6:36 PM
 

in sql server there are 2 files, the mdf which contains data, and the ldf which contains the logs. Logging can have 3 forms, simple (where the log only holds enough information for the current transaction and is typically very small), bulk (where actions such as bulk loads are logged as a single entry rather than an entry for each piece of data - this means that if you do a lot of loads via bcp or DTS/SSIS the log file still grows but not as quickly) or full (this is the default - all actions are logged, making this the best [you can restore to point in time etc.], but the largest). Log files grow and grow as needed so can get very large, and need to be controlled. To shrink a log file down, a "checkpoint" needs to be hit i.e. the database has to ensure transactional integrity. The "best" way to do this is to do a full database backup, that will ensure that you have a backup, perform a checkpoint and then delete the contents of the log. Typically I would recommend that you schedule nightly backups, that will keep everything in order.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Best Practice... DNN SQL Log FilesBest Practice... DNN SQL Log Files


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.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out