I would like to follow the performance of querys, and if some of them spend more then two hour and they could not finish yet I need to identify them and to kill.
This procedure will avoid process running all day long because has some error or a SQL code miswrited.