When I run a lengthy select in Enterprise Manager (MSSQL 6.5), I can stop it by clicking the red button.

What SQL command does the red button execute? I would like to be able to do that from a program using the escape button.

Tbanks, Bob