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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Database transaction log?Database transaction log?
Previous
 
Next
New Post
3/12/2008 11:03 AM
 

Hi,

I'd like to know what is filling in the databse transaction log? Is it filled by DNN or by the db itself?

And can I clear the log files through Host SQL? Will it affect the application?

Thanks

Duc

 
New Post
3/12/2008 8:36 PM
 

the database transaction log is filled by SQL Server, if you set the recovery model of the database to 'Full". The transaction log will enable rollback to any point of time in the past.. The transaction log is emptied when the database is properly backed up

For the average dnn site, this is not really necessary, setting the recovery model to "Simple" will suffice.

You cannot clear the log through host > sql (well, you probably can, but i dont know the sql for that to do it). If you set the recovery model to Simple and do a Shrink Database after that, your transaction log will be empty


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
3/13/2008 1:11 AM
 

Thanks Erik,

I'll investigate some more.

Duc

 
New Post
3/15/2008 5:06 AM
 

In case your transaction log is full, use the following code from the Host - SQL:

(change db_Name to your db name)

Lines 2 and 3 are not needed but I found that in cases that site is stalled it is a good way to add them too.

BACKUP LOG db_Name WITH TRUNCATE_ONLY
TRUNCATE TABLE eventlog
TRUNCATE TABLE sitelog
DBCC SHRINKDATABASE (db_Name);

If you can't access the SQL page then you have to do it from the DB itself.

T.

 


Yehuda Tiram
AtarimTR
AtarimTR
972-2-5700114   |   972-54-4525492   |    http://www.atarimtr.co.il
 
New Post
3/15/2008 8:18 AM
 

in case, a different databaseOwner or objectQualifier is speciified in your web.config, the following syntax will work from SQL page in host menu:

BACKUP LOG db_Name WITH TRUNCATE_ONLY
TRUNCATE TABLE {databaseOwner}{objectQualifier}EventLog
TRUNCATE TABLE {databaseOwner}{objectQualifier}SiteLog
DBCC SHRINKDATABASE (db_Name);


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Database transaction log?Database transaction log?


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