Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

MSSQLFUN

I, Rohit Garg, am working as Consultant in IT Company. I am having an around 5 years of experience in MSSQL server & other Microsoft technologies. I am working as DBA in Microsoft SQL Server from last 5 years in e-Commerce, Telecom, Finance domain. In this tenure, I got a chance of working as Database administrator, Developer and trainer on SQL server 2000 to SQL Server 2012. I am holding Master’s degree in Computer Science along with certification in SQL Server & .Net. I like to learn new things by hand-on experience on regular basis. This journey is so far is delightful & valuable with the addition of wonderful friends.

How to save deadlock graph events as .xdl file in SQL Server ?

How to save deadlock graph events as .xdl file ?

  1. On the File menu, click New Trace, and then connect to an instance of SQL Server.
  2. In the Trace Properties dialog box, type a name for the trace in the Trace name box.
  3. 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.
  4. Do one of the following:

· Select the Save to file check box to capture the trace to a file. Specify a value for Set maximum file size.

Optionally, select Enable file rollover and Server processes trace data.

· Select the Save to table check box to capture the trace to a database table.

Optionally, click Set maximum rows, and specify a value.

  1. Optionally, select the Enable trace stop time check box, and specify a stop date and time.

  1. Click the Events Selection tab.
  2. In the Events data column, expand the Locks event category, and then select the Deadlock graph check box. If the Locks event category is not available, check Show all events to display it.

The Events Extraction Settings tab is added to the Trace Properties dialog box.

  1. On the Events Extraction Setting stab, click Save Deadlock XML Events Separately.
  2. In the Save As dialog box, enter the name of the file in which to store the deadlock graph events.
  3. Click All Deadlock XML batches in a single file to save all deadlock graph events in a single XML file, or click Each Deadlock XML batch in a distinct file to create a new XML file for each deadlock graph.

11. Deadlock graph captured by SQL Profiler


Comments

Leave a comment on the original post [mssqlfun.com, opens in a new window]

Loading comments...