Welcome to the blog site of SQLServer.in

Archives for May, 2011

This error could be due to the logon trigger in sql server 2005, like the one mentioned in the below link

http://www.mssqltips.com/tip.asp?tip=1830.

Solution

There are only two ways to connect to sql server in this scenario.

1. Connect using DAC.(using -A)

sqlcmd -S LocalHost -d master -A
go
drop trigger trigger_name on all server
go

2. Connect using sqlservr.exe from the binn folder

Execute the sqlservr.exe from the command prompt, specifying the location of the binn, using -m & -f to start sql in single user mode with minimal configuration.

Logon failed for login due to trigger execution

Logon failed for login due to trigger execution

Once SQL is started with minimal config, you could connect through management studio & disable the trigger.

Get Adobe Flash playerPlugin by wpburn.com wordpress themes
 

About Author

Krishna is a Senior Database Administrator, having handson experience of 6 years. Areas of expertise includes database engine, Business Intelligence & performance tunning. A regular SQL blogger on his own website, msdn forums, sqlteam.com & believe in sharing his experience with other technology enthusiasts.