Products | Versions |
---|---|
TIBCO Cloud Integration - Connect ( Scribe ) | - |
Configuring The SQL Server Error Log
To trace all deadlock information and write it to the SQL Server Error Log with detailed information, run the following SQL statement:
/* -- What to Capture? -------------------- -- (1204) = Capture Deadlock Events. -- (1222) = Capture Deadlock Events with detailed Information (works only with SQL 2005 and higher version) -- Where to capture ? ------------------- -- (3605) = Capture the selected Events in the SQL Server error log. -- What is the Scope of Capture -------------------------------- -- (-1) = Switches on the specified trace flags globally, that means do it globally, for all users/sessions */ DBCC TRACEON (3605,1204,1222,-1) |
Viewing The SQL Server Error Log