I ran this in a new query window and it ran successfully. I did not get an output. How do I view the results????
If I run it again I get the following message.
Msg 2714, Level 16, State 3, Procedure dba_WhatSQLIsExecuting, Line 17
There is already an object named 'dba_WhatSQLIsExecuting' in the database.