ITPub博客

首页 > 数据库 > SQL Server > Logon failed for login due to trigger execution

Logon failed for login due to trigger execution

SQL Server 作者:o0yuki0o 时间:2017-08-23 23:24:08 0 删除 编辑

SQL SERVER – Fix : Error : 17892 Logon failed for login due to trigger execution. Changed database context to ‘master’.

Now, it will not be possible to logon to the database using SQL Server Management Studio. The only way to fix this problem is using DAC. Read more details about DAC  Using a Dedicated Administrator Connection to Kill Currently Running Query. Now let us take a look at the example in our case where I am using windows authentication to logon to the system.

Connect SQL Server using sqlcmd and -A option, which will establish DAC. Running the following command on command prompt will allow you to login once again in the database. I am specifying argument -d master which will directly enable me to logon to master database when DAC is connected.

C:\Users\Pinal>sqlcmd -S LocalHost -d master -A
1> DROP TRIGGER Tr_ServerLogon ON ALL SERVER
2> GO

https://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/16131092/viewspace-2144029/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: whoisactive
下一篇: 必要的建表权限
请登录后发表评论 登录
全部评论

注册时间:2014-02-26

  • 博文量
    90
  • 访问量
    75886