I would like to give a user the ability to cancel a running query. The query is really slow. (Query optimization is besides the point.) This is mainly out of my curiosity.>
IF you really absolutely want to kill it for good use this approach:
When you want to kill it:
ALTER ANY CONNECTION to do this