text: ALTER EVENT SESSION [Deadlocks] ON SERVER STATE = STOP
  GO
  DROP EVENT SESSION [Deadlocks] ON SERVER 
  GO
  CREATE EVENT SESSION [Deadlocks] ON SERVER 
  ADD EVENT sqlserver.xml_deadlock_report 
  ADD TARGET package0.event_file(SET filename=N'Deadlocks',max_file_size=(250),max_rollover_files=(3))
  WITH (MAX_MEMORY=4096 KB,EVENT_RETENTION_MODE=ALLOW_SINGLE_EVENT_LOSS,MAX_DISPATCH_LATENCY=30 SECONDS,MAX_EVENT_SIZE=0 KB,MEMORY_PARTITION_MODE=NONE,TRACK_CAUSALITY=ON,STARTUP_STATE=ON)
  GO
  ALTER EVENT SESSION [Deadlocks] ON SERVER STATE = START
  GO
  