2023年6月20日 — When a deadlock occurs, trace flags 1204 and 1222 capture information about the deadlock event and log it in the SQL Server error log. Trace ...
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 ...
2023年3月31日 — Trace flag 1204 - Captures information about deadlocks that occur on the server. Trace flag 1222 - Captures detailed information about deadlocks ...