I have taken this script provided by Wilfred and updated it to SQL 2005.
If interested, you can read about it at:
http://jasonbrimhall.info/?p=407
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events