Will "the Mighty" Strohl

HOW TO: Get the Last Error on Your DNN Site

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



blog comments powered by Disqus

Affiliate Disclosure: Some of the links on this site may be affiliate links. This means, at no additional cost to you, I may earn a commission if you click through and make a purchase. All editorial content is not influenced by partnerships. I only recommend products and services I genuinely believe in.

© Copyright 2004-2025 by Will Strohl | Site design by Ralph Williams | Hosting Provided by Applied Innovations | DNN Development & Consulting | | Login