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/18/2015 11:26 AM
 
Michael Miller wrote:

ObjectQualifier would be ?  (an example)...this is very helpful 

You don't need to know, as the term "{objectQualifier}" (mind lowercase/uppercase letters!) is automatically replaced by the correct objectQualifier of your DNN installation by this module (placed in Host :: SQL) (in most cases, there is none, so it is replaced by an empty string). Same for "{databaseOwner}" - this might be different to dbo, esp. in shared hosting environments.

Happy DNNing!
Michael  


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
DNN Connect 2020
 
New Post
3/18/2015 11:34 AM
 
Michael Miller wrote:

I seem to not be able the get the syntax correct:

TRUNCATE  (dbo) TABLE EventLog or it references a foreign Key? (where dbo = name of database)

I tried several variations without success..

As far as I can see there is no foreign key reference with EventLog as master table.

"dbo" is not the name of the database, but of the database owner. When you use the Host :: SQL module, you don't need to know this name (see my post before). Just enter

TRUNCATE TABLE {databaseOwner}{objectQualifier}EventLog

and execute it. If you want to keep some of the records, take my first advice.

(Please note: In former DNN versions, there is a checkbox below the SQL statement box to "Execute as script" - please check this before running if applicable).

Best wishes
Michael


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
DNN Connect 2020
 
New Post
3/18/2015 2:12 PM
 
Michael T -

Put in actually copied your last post
TRUNCATE TABLE {databaseOwner}{objectQualifier}EventLog
 and the program returned:

Cannot truncate table 'dbo.EventLog' because it is being referenced by a FOREIGN KEY constraint.

TRUNCATE TABLE dbo.EventLog

The next item is ? Foreign Key Constraint.

Kind of understand - but at the same time also lost - I checked your reference to DBCC SHRINKBASE and it makes sense- but I'm not getting through the first issue - its hard to correct part 2 if I I don't have part 1.

 
New Post
3/18/2015 2:34 PM
 
Michael, as I stated before, this statement works on DNN up to version 7.3.4 only.
For users of DNN 7.4.0 "DELETE FROM {databaseOwner}{objectQualifier}EventLog" won't work, please see my Blog post for details and solution: http://www.dnnsoftware.com/community-...

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
3/18/2015 3:48 PM
 

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

 
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