SQL–List users currently logged in, and kill process commands.
List users:
select spid, status, loginame, hostname, blocked, db_name(dbid), cmd from master..sysprocesses where db_name(dbid) = 'SHTDRIFT'
Kill:
EXEC('KILL 57')
List users:
select spid, status, loginame, hostname, blocked, db_name(dbid), cmd from master..sysprocesses where db_name(dbid) = 'SHTDRIFT'
Kill:
EXEC('KILL 57')
NathanBunting.com © 2008 by NathanBunting.com | Designed by Design Blog | Blogger Template by ThemeLib.com
0 comments:
Post a Comment