JtheRipper
IS-IT--Management
Hi there,
I want to create a script that I can run anytime to kill all the processes on my SQL Server 2000 instance that have been running for more than i.e. 2 hours. There should not be any processes running this long, but sometimes a processes gets "stuck" and prohibits other processes from finishing. I had a look at sysprocesses and sysjobs, but can't seem to find the necessary info to write a script/procedure to do this.
Any ideas?
Thanks,
J.
I want to create a script that I can run anytime to kill all the processes on my SQL Server 2000 instance that have been running for more than i.e. 2 hours. There should not be any processes running this long, but sometimes a processes gets "stuck" and prohibits other processes from finishing. I had a look at sysprocesses and sysjobs, but can't seem to find the necessary info to write a script/procedure to do this.
Any ideas?
Thanks,
J.