SP KILL Re: KILL SPIDS

SP KILL Re: KILL SPIDS

Post by CG » Sat, 25 Nov 2000 04:00:00



Tibor, Thank you - the stored procedures located at that address are just
the job(sp_dbm_kill_users). However being new to SQL could you just help
with the syntax:
Do I enter the DB name like so:  &dbname='test' sysname, etc?

Sorry for the ignorance!

--

----------------------------------------------------------------------------
------------------------------
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
ICON.net Limited  + 44 (0) 1452 - 305303

----------------------------------------------------------------------------
--------------------------------

 
 
 

SP KILL Re: KILL SPIDS

Post by Tibor Karasz » Sat, 25 Nov 2000 04:00:00


Craig,

You have to create the proc first. Open the text in Query Analyzer, make sure that you
are in the master database and execute. You now have a pro names sp_dbm_kill_users.

Call it like:
EXEC sp_dbm_kill_users pubs

I.e, just the database name after the proc name. If you're on SQL Server 2000, btw,
you have remove the version check in the beginning of the proc code, or amend it.
Also, there's an optional parameter, the wait parameter. See the end of the proc
source code for how to use that.

--
Tibor Karaszi, SQL Server MVP
Neil's FAQ at: http://www.sqlserverfaq.com
Please reply to the newsgroup only, not by email.


> Tibor, Thank you - the stored procedures located at that address are just
> the job(sp_dbm_kill_users). However being new to SQL could you just help
> with the syntax:
> Do I enter the DB name like so:  &dbname='test' sysname, etc?

> Sorry for the ignorance!

> --

> ----------------------------------------------------------------------------
> ------------------------------
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> ICON.net Limited  + 44 (0) 1452 - 305303

> ----------------------------------------------------------------------------
> --------------------------------


 
 
 

1. killing spid's

I'd like to be able to kill users who are running a particular
application against our 11.0.3 database. Does anyone have a script that
will do this?

**********************************************************
* JOHN MCDOWELL  B-}    *  Principal Software Engineer   *

* (412) 268-6853        *  Carnegie Mellon University    *
* http://www.andrew.cmu.edu/user/mcdowell/john.html      *
**********************************************************

2. input

3. Killing SPIDs when source is stored procedure??

4. UniData Training (UK)

5. kill an SPID from Query Analyzer

6. recode command

7. Set up the automatic job to kill locking spid

8. Oracle Resources (JOBS, RESUMES, LINKS, TUNING SCRIPT)!

9. KILL with spid from variable

10. Kill SPID process?

11. Selectively killing SPID's

12. Killing Spids

13. killing spids