Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 15930

help shredding/reading system health report

$
0
0

How does one best read the XML from the system health report on SQL 2008?

Someone must have written some nice shredding code, any pointers or posts to such?

Thanks.

Josh

SELECT 
  @@SERVERNAME as servername,
  CAST(xet.target_data as xml) as myring, LEN(xet.target_data) as ringlen
FROM sys.dm_xe_session_targets xet
  INNER JOIN sys.dm_xe_sessions xe
    ON (xe.address = xet.event_session_address)
WHERE xe.name = 'system_health'


Viewing all articles
Browse latest Browse all 15930

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>