The Mighty Blog

HOW TO: Get the Last Error on Your DNN Site

Jan 24

Written by:
1/24/2008  RssIcon

Please note, that this will only work for errors that get logged into the DNN Event Log.  Also, you will need query access to your database.

All you have to do is run this simple query, and your last error that the site experienced will load in your query window:

SELECT TOP 1 CAST([LogProperties] AS XML)
FROM [dbo].[EventLog]
ORDER BY [LogCreateDate] DESC;

If you are using a version prior to SQL Server 2005, you can still perform this query, although you are going to have to adapt it to XML yourself (in regards to the line breaks and formatting).  Here is your version of the query:

SELECT TOP 1 [LogProperties]
FROM [dbo].[EventLog]
ORDER BY [LogCreateDate] DESC

Tags:
Categories: DotNetNuke

Your name:
Gravatar Preview
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Add Comment   Cancel 
Add to Technorati Favorites
Tweet about my blog
The opinions expressed here are the personal opinions of Will Strohl and do not necessarily represent the views and opinions of the DotNetNuke Corporation.
© Copyright 2004-2011 by Will Strohl. All rights reserved. Website Skinned By: Ralph Williams  Website Hosted By: Applied Innovations