[SQL]Could not drop login 'test' as the user is currently logged in. Msg 15434
今天在SSMS中測試好帳號後,要將測試的帳號刪除時,
USE [master]
GO
DROP LOGIN [test]
GO
出現以下的錯誤訊息。
Msg 15434, Level 16, State 1, Line 1
Could not drop login 'test' as the user is currently logged in.
奇怪,已將那個登入者開啟的Query關掉了,為何還會出現呢?
開啟 Active Monitor 來看,果然還存在,如下圖,
將該Process Kill掉後,就可以順利將該帳號刪除了!
Hi,
亂馬客Blog已移到了 「亂馬客 : Re:從零開始的軟體開發生活」
請大家繼續支持 ^_^