Products

Solutions

Learn More

Partners

Community

Blog

About

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 ...Database EventLog filesDatabase EventLog files
Previous
 
Next
New Post
3/19/2015 4:47 AM
 
Michael Miller wrote:

Thanks Sebastian...seems the server is timing out before it can complete  operation. Never just one thing. 

Michael,

when the statement is timing out you have two options:

  • either you try to enter Sebastians code as long as it works (I guess that some records get deleted every time and somewhen it is done)
  • or you reduce the amount of records to delete by adding a date range condition.

For the second option, you could try to delete all records in the first half year of 2014 by

DELETE FROM {databaseOwner}{objectQualifier}EventLog WHERE LogCreateDate BETWEEN CONVERT(date, '2014-01-01') AND CONVERT(date, '2014-06-30')

If this works, change the dates and delete the second half year of 2014, etc., otherwise take only the first quarter.

To determine how many records are in a specific time range, you can use:

SELECT COUNT(*) FROM {databaseOwner}{objectQualifier}EventLog WHERE LogCreateDate BETWEEN CONVERT(date, '2014-01-01') AND CONVERT(date, '2014-06-30')

Happy DNNing!
Michael


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
DNN Connect 2020
 
New Post
3/19/2015 6:38 AM
 
Michael, I just created a script, which truncates EventLog in DNN 7.4.0: https://dnnscript.codeplex.com/releas...

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
3/19/2015 8:50 PM
 

It loaded  very well  into  the SQL under Host - Script ran successfully- actually in a matter of seconds,  but the date .log.resources files are still intact...so is this a different log file I need to delete?  And do I now run the DBCC Shrinkdatabase per Michael T's  post (a few back)? 

Thanks guys! 

 

 
New Post
3/20/2015 4:41 AM
 

Michael,

these (date).log.resources files (located under ~/Portals/default) can be deleted without problems (afaik - but maybe Sebastian can confirm this). Anyway, I would keep some of them (e.g. those from the last seven days).

Shrinking the database can be done now if you want. Please read the documentation about the DBCC SHRINKDATABASE or the DBCC SHRINKFILE commands. Please keep in mind that this should only be done when you are going to run out of diskspace. The better option would be to add diskspace.

Happy DNNing!
Michael


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
DNN Connect 2020
 
New Post
3/20/2015 5:06 AM
 
you may safely delete any log FILES, important errors are logged in the database, .log.resources files inside /providers/dataproviders/sqldataprovider should not be large and contain upgrade results.
if you need to compact the database, run
DBCC SHRINKDATABASE 0
inside Host > SQL.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Database EventLog filesDatabase EventLog 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.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  

What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out