Webcoda
-
3/21/2012 6:35:41 AM
RE:Kentico backend system SQL error.
Hi,
I just started getting the same error every time I try to login to CMSDESK. This started to happen out of the blue, no code or config changes.
We are running 4.4R2 and have recently upgraded to the latest hotfiix 44.
-----------------------------------------
This is what I get when select 'deleteolderlogs' query from dbo.CMS_Query
DELETE FROM [CMS_EventLog] WHERE ([EventID] NOT IN (SELECT TOP ##ORDERBY## [EventID] FROM [CMS_EventLog] WHERE ##WHERE## ORDER BY [EventID] DESC)) AND (##WHERE##)
-----------------------------------------
An unhandled exception occurred and the process was terminated.
Application ID: /LM/W3SVC/23/ROOT
Process ID: 1380
Exception: System.Exception
Message: [DataConnection.ExecuteQuery]: Query: DELETE FROM [CMS_EventLog] WHERE ([EventID] NOT IN (SELECT TOP [EventID] DESC [EventID] FROM [CMS_EventLog] WHERE SiteID = 1 ORDER BY [EventID] DESC)) AND (SiteID = 1): caused exception: Incorrect syntax near 'EventID'.
StackTrace: at CMS.DataProviderSQL.DataConnection.ExecuteQuery(String queryText, Object[,] queryParams, QueryTypeEnum queryType) at CMS.DataEngine.GeneralConnection.RunQuery(QueryParameters query) at CMS.DataEngine.GeneralConnection.ExecuteQuery(QueryParameters query) at CMS.DataEngine.GeneralConnection.ExecuteQuery(String queryName, Object[,] parameters, String where, String orderBy, Int32 topN) at CMS.EventLog.EventLogCleaner.Run() at CMS.GlobalHelper.CMSThread.Run() at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()
--------------------------------
Thank you for your help. Oleg
|