

In the Save As dialog box, enter the name of the file in which to store the deadlock graph events.Its not as pretty as the profiler version, but it will work. That makes SQL write the deadlock graph into the error log. On the Events Extraction Setting stab, click Save Deadlock XML Events Separately. Januat 11:44 am 771009 Switch trace flag 1204 on.The Events Extraction Settings tab is added to the Trace Properties dialog box. If the Locks event category is not available, check Show all events to display it. In the Events data column, expand the Locks event category, and then select the Deadlock graph check box.Optionally, select the Enable trace stop time check box, and specify a stop date and time.Optionally, click Set maximum rows, and specify a value. Select the Save to table check box to capture the trace to a database table.Optionally, select Enable file rollover and Server processes trace data. Specify a value for Set maximum file size.

Select the Save to file check box to capture the trace to a file. A deadlock occurs when two or more processes are waiting on the same resource and each process is waiting on the other process to complete before moving forward.In the Use the template list, select a trace template on which to base the trace, or select Blank if you do not want to use a template.Once this has been determined, that process is killed and a 1205 error is returned to the client.
