We set our Deadlock Trace on with the following command:
DBCC TRACEOn (1204, -1)
DBCC TRACEOFF (3605, -1);
DBCC TRACESTATUS (-1)
GO
In 2000 this worked fine but in 2005 we get the following error:
Log Viewer could not read information for this log entry. Cause: Data is Null. This method or property cannot be called on Null values.. Content:
What do I need to do to fix this so we can see the cause of the deadlock in the SQL Server logs?
The statements above do work on SQL2005 and will output deadlock graphs to the errorlog.
There is a new trace flag in SQL2005 that enhances the information output on deadlock: trace flag 1222.
What log viewer are you using to view the errorlogs? Can you open the errorlog files with notepad instead?
|||Thanks for the information. I use the SQL Server Log viewer in Microsoft SQL Server Management Studio to view the logs.|||Hi Guys,
Unlike SQL 2000, Trace flag 3605 does not work in SQL Server 2005.
regards
Jag
No comments:
Post a Comment