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 ...Delete Exceptions and EventLog table entries.Delete Exceptions and EventLog table entries.
Previous
 
Next
New Post
2/15/2016 2:10 AM
 

Tried to remove entries from Exceptions and EventLog tables in DNN version 7.4.2 using the script mentioned in the following URL.

http://www.dnnsoftware.com/community-blog/cid/155180/howto-truncate-your-eventlog-in-dnn-740

However, it is giving the following error message in SQL management studio.

---
Msg 102, Level 15, State 1, Line 3

Incorrect syntax near '{'.

Msg 102, Level 15, State 1, Line 7

Incorrect syntax near '{'.

Msg 102, Level 15, State 1, Line 12

Incorrect syntax near '}'.

Msg 178, Level 15, State 1, Line 13

A RETURN statement with a return value cannot be used in this context.

Msg 102, Level 15, State 1, Line 17

Incorrect syntax near '}'.

Msg 102, Level 15, State 1, Line 42

Incorrect syntax near '}'.

Msg 102, Level 15, State 1, Line 43

Incorrect syntax near '{'.

Msg 102, Level 15, State 1, Line 50

Incorrect syntax near '}'.

Msg 102, Level 15, State 1, Line 52

Incorrect syntax near '{'.

Msg 102, Level 15, State 1, Line 62

Incorrect syntax near 'ACTION'.

Msg 102, Level 15, State 1, Line 66

Incorrect syntax near '{'.
---

Can someone help to solve this problem?

 
New Post
2/15/2016 4:12 AM
 

Hi,

did you run the script from SQL Server Management Studio or did you run it from Host :: SQL (from inside DNN)?

It worked fine for me when running it from Host :: SQL, if you run it from SSMS you hafe to find and replace {databaseOwner} and {objectQualifier} by its appropriate vales first (including the brackets!), eg. "{databaseOwner}" -> "dbo." and "{objectQualifier}" -> "dnn_".

Happy DNNing!
Michael

 


Michael Tobisch
DNN★MVP
dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
2/15/2016 5:52 AM
 
Michael is correct. Note: default values for "{databaseOwner}" is "dbo." and for "{objectQualifier}" is "" (empty string).
In SQL Server Management Studio, you may use Replace option and "replace all" button.

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/16/2016 12:33 AM
 

Remark: when you are not sure about databaseOwner and objectQualifier you can find these values in the web.config file:

<configuration>
   ...
   <dotnetnuke>
      ...
         <data defaultProvider="SqlDataProvider">
            <providers>
               <clear />
               <add name="SqlDataProvider" type="DotNetNuke.Data.SqlDataProvider, DotNetNuke"
                  connectionStringName="SiteSqlServer"
                  upgradeConnectionString=""
                  providerPath="~\Providers\DataProviders\SqlDataProvider\"
                  objectQualifier="dnn"
                  databaseOwner="dbo." />
            </providers>
         </data>

Happy DNNing!
Michael


Michael Tobisch
DNN★MVP
dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
7/11/2016 3:03 PM
 
Hi

I did it in Host- SQL. Script went well but all rows remain in the sitelog table.

I have a dnn742 website

Any ideas?

best
Jose
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Delete Exceptions and EventLog table entries.Delete Exceptions and EventLog table entries.


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.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out