You administer a Microsoft SQL Server database server. One of the databases on the server supports a highly active OLTP application.
Users report abnormally long wait times when they submit data into the application.
You need to gather blocking data over an extended period of time. You also need to ensure minimum impact to server performance.
What should you do?
Correct Answer: E
Explanation/Reference:
You can track down queries that are causing deadlocks. On solution is using a trace flag to write the deadlock information to the error log. You can implement trace flag 1222 to do just that.
There are two ways to enable global trace flags. You can enable the trace flag when SQL Server starts by using the -T1222 startup option, or you can use the DBCC TRACEON(1222,-1) command after SQL Server has started.
References:
http://www.mssqltips.com/sqlservertip/2130/finding-sql-server-deadlocks-using-trace-flag-1222/
http://msdn.microsoft.com/en-us/library/ms188396.aspx