杀死数据库连接

select program_name,spid,dbid,login_time,last_batch,hostname,nt_username,net_library,hostprocess,db_name(dbid) 
from sys.[sysprocesses] where spid>50 -- and loginame<>'fxdbUser'
 and db_name(dbid)<>''

kill spid

猜你喜欢

转载自blog.csdn.net/hsqchdn/article/details/89885453