<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Fix : Error : 17892 Logon failed for login due to trigger execution. Changed database context to &#8216;master&#8217;.</title>
	<atom:link href="http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Thu, 09 Feb 2012 19:36:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: namanthakral</title>
		<link>http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/#comment-246036</link>
		<dc:creator><![CDATA[namanthakral]]></dc:creator>
		<pubDate>Tue, 31 Jan 2012 06:48:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5722#comment-246036</guid>
		<description><![CDATA[Wonderful article i messed my servers and was really clueless what to do next but ur article and mainly DAC inplementation saved my life thanks a lot]]></description>
		<content:encoded><![CDATA[<p>Wonderful article i messed my servers and was really clueless what to do next but ur article and mainly DAC inplementation saved my life thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Varun Mehta</title>
		<link>http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/#comment-245704</link>
		<dc:creator><![CDATA[Varun Mehta]]></dc:creator>
		<pubDate>Mon, 30 Jan 2012 13:32:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5722#comment-245704</guid>
		<description><![CDATA[Hi Pinal,

That is a very good information you gave in this article. :)

Thanks,
Varun]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>That is a very good information you gave in this article. :)</p>
<p>Thanks,<br />
Varun</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amar</title>
		<link>http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/#comment-178526</link>
		<dc:creator><![CDATA[Amar]]></dc:creator>
		<pubDate>Thu, 13 Oct 2011 23:03:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5722#comment-178526</guid>
		<description><![CDATA[Question: Would using login triggers cause performance issue in applications. 

I am trying to implement login trigger that would restrict the SQL account used by application to login from particular host only. 

This would avoid other instance of same application to accidentally  connect to production instance.

Could you please let me know what are the pros and cons.]]></description>
		<content:encoded><![CDATA[<p>Question: Would using login triggers cause performance issue in applications. </p>
<p>I am trying to implement login trigger that would restrict the SQL account used by application to login from particular host only. </p>
<p>This would avoid other instance of same application to accidentally  connect to production instance.</p>
<p>Could you please let me know what are the pros and cons.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tawab</title>
		<link>http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/#comment-154317</link>
		<dc:creator><![CDATA[Tawab]]></dc:creator>
		<pubDate>Sat, 06 Aug 2011 04:44:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5722#comment-154317</guid>
		<description><![CDATA[hi, as u mentioned above how to use sqlcmd on real mode .......]]></description>
		<content:encoded><![CDATA[<p>hi, as u mentioned above how to use sqlcmd on real mode &#8230;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Satheesh Kumar . P</title>
		<link>http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/#comment-148203</link>
		<dc:creator><![CDATA[Satheesh Kumar . P]]></dc:creator>
		<pubDate>Thu, 14 Jul 2011 07:09:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5722#comment-148203</guid>
		<description><![CDATA[Hi pinal,

My database contains 2200 stored procedure,the developers didnt include SET NOCOUNT ON to all the stored procedures...
Is there any options to activate SET NOCOUNT ON to whole database or server?
if it is there please tell me how to do this or otherwise i have to do manually.............]]></description>
		<content:encoded><![CDATA[<p>Hi pinal,</p>
<p>My database contains 2200 stored procedure,the developers didnt include SET NOCOUNT ON to all the stored procedures&#8230;<br />
Is there any options to activate SET NOCOUNT ON to whole database or server?<br />
if it is there please tell me how to do this or otherwise i have to do manually&#8230;&#8230;&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: favorable</title>
		<link>http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/#comment-119222</link>
		<dc:creator><![CDATA[favorable]]></dc:creator>
		<pubDate>Fri, 18 Feb 2011 20:50:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5722#comment-119222</guid>
		<description><![CDATA[Pinal,

You have excellent information.  I was bombed with a similar error: Logon failed for (user) due to trigger execution.
Changed database context to ‘master’.
Changed language setting to us_english. (Microsoft SQL Server, Error: 17892) for over 30 hrs.  
Tried SQLCMD, and DAC none would work for me. However, today decided to search your forum and thank God, the solution was right there.
It&#039;s a miracle!]]></description>
		<content:encoded><![CDATA[<p>Pinal,</p>
<p>You have excellent information.  I was bombed with a similar error: Logon failed for (user) due to trigger execution.<br />
Changed database context to ‘master’.<br />
Changed language setting to us_english. (Microsoft SQL Server, Error: 17892) for over 30 hrs.<br />
Tried SQLCMD, and DAC none would work for me. However, today decided to search your forum and thank God, the solution was right there.<br />
It&#8217;s a miracle!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dove265</title>
		<link>http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/#comment-106055</link>
		<dc:creator><![CDATA[Dove265]]></dc:creator>
		<pubDate>Thu, 16 Dec 2010 05:29:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5722#comment-106055</guid>
		<description><![CDATA[C:\Documents and Settings\dove165&gt;sqlcmd -s ghdb78 -e -A -q &quot;Disable trigger tr
igLogon_CheckForSysAdmin ON ALL SERVER&quot;
Disable trigger trigLogon_CheckForSysAdmin ON ALL SERVER
1&gt;


worked like magic for me too]]></description>
		<content:encoded><![CDATA[<p>C:\Documents and Settings\dove165&gt;sqlcmd -s ghdb78 -e -A -q &#8220;Disable trigger tr<br />
igLogon_CheckForSysAdmin ON ALL SERVER&#8221;<br />
Disable trigger trigLogon_CheckForSysAdmin ON ALL SERVER<br />
1&gt;</p>
<p>worked like magic for me too</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arun J M</title>
		<link>http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/#comment-102964</link>
		<dc:creator><![CDATA[Arun J M]]></dc:creator>
		<pubDate>Tue, 30 Nov 2010 04:51:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5722#comment-102964</guid>
		<description><![CDATA[Thanks for your explanation]]></description>
		<content:encoded><![CDATA[<p>Thanks for your explanation</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Judi</title>
		<link>http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/#comment-102725</link>
		<dc:creator><![CDATA[Judi]]></dc:creator>
		<pubDate>Mon, 29 Nov 2010 05:25:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5722#comment-102725</guid>
		<description><![CDATA[Mega Thanks!  Along with Terry I thought I was really in for it when this error occurred and when I read further about the script that I ran... well it was a little too late!  You most definately saved my bacon and made my day.  Thanks, thanks and again thanks.]]></description>
		<content:encoded><![CDATA[<p>Mega Thanks!  Along with Terry I thought I was really in for it when this error occurred and when I read further about the script that I ran&#8230; well it was a little too late!  You most definately saved my bacon and made my day.  Thanks, thanks and again thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wolft</title>
		<link>http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/#comment-93702</link>
		<dc:creator><![CDATA[wolft]]></dc:creator>
		<pubDate>Sat, 16 Oct 2010 20:04:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5722#comment-93702</guid>
		<description><![CDATA[Thanks for your explanation]]></description>
		<content:encoded><![CDATA[<p>Thanks for your explanation</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nagnath Kendre</title>
		<link>http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/#comment-84791</link>
		<dc:creator><![CDATA[Nagnath Kendre]]></dc:creator>
		<pubDate>Sat, 21 Aug 2010 06:57:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5722#comment-84791</guid>
		<description><![CDATA[DAC is not connecting to remote server databse 

Error: Login timeout expired 

make sure that dac is enabled ...
error occured while establishing connection 


i have to kill trigger becuase of this my work is stopped please help me.]]></description>
		<content:encoded><![CDATA[<p>DAC is not connecting to remote server databse </p>
<p>Error: Login timeout expired </p>
<p>make sure that dac is enabled &#8230;<br />
error occured while establishing connection </p>
<p>i have to kill trigger becuase of this my work is stopped please help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Selvakumar</title>
		<link>http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/#comment-81781</link>
		<dc:creator><![CDATA[Selvakumar]]></dc:creator>
		<pubDate>Tue, 27 Jul 2010 06:27:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5722#comment-81781</guid>
		<description><![CDATA[SQL Server]]></description>
		<content:encoded><![CDATA[<p>SQL Server</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sanjay Dubey</title>
		<link>http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/#comment-81512</link>
		<dc:creator><![CDATA[Sanjay Dubey]]></dc:creator>
		<pubDate>Sat, 24 Jul 2010 11:50:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5722#comment-81512</guid>
		<description><![CDATA[Hi,
 I am getting the same error but it did not work for me. But below steps resolve  my problem.

1.Connect SQL Server using  sqlcmd  go to run type cmd. You can get the command prompt. Now type below command:

sqlcmd -S LocalHost -d master –A

2.Now search for trigger :

SELECT * FROM sys.server_triggers
GO

Found the trigger i found the trigger “tddl_limitconnections”

3. Than i drop the trigger.

drop trigger tddl_limitconnections on all server
 GO

Now i am able to login using SQL Server Management Studio.

It resolves my problem may be this resolves yours too.  If the triggers are not same please find trigger first than replace with tddl_limitconnections trigger it may resolve your issue.

Thanks.]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
 I am getting the same error but it did not work for me. But below steps resolve  my problem.</p>
<p>1.Connect SQL Server using  sqlcmd  go to run type cmd. You can get the command prompt. Now type below command:</p>
<p>sqlcmd -S LocalHost -d master –A</p>
<p>2.Now search for trigger :</p>
<p>SELECT * FROM sys.server_triggers<br />
GO</p>
<p>Found the trigger i found the trigger “tddl_limitconnections”</p>
<p>3. Than i drop the trigger.</p>
<p>drop trigger tddl_limitconnections on all server<br />
 GO</p>
<p>Now i am able to login using SQL Server Management Studio.</p>
<p>It resolves my problem may be this resolves yours too.  If the triggers are not same please find trigger first than replace with tddl_limitconnections trigger it may resolve your issue.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gergo</title>
		<link>http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/#comment-75195</link>
		<dc:creator><![CDATA[Gergo]]></dc:creator>
		<pubDate>Tue, 08 Jun 2010 13:43:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5722#comment-75195</guid>
		<description><![CDATA[hm, my &#039;objectID&#039; text was deleted, maybe because I used &lt; &gt; instead of &amp; lt; &amp; gt; ...so the correct phrase is:

SELECT object_definition( &lt; objectID &gt; )
GO]]></description>
		<content:encoded><![CDATA[<p>hm, my &#8216;objectID&#8217; text was deleted, maybe because I used &lt; &gt; instead of &amp; lt; &amp; gt; &#8230;so the correct phrase is:</p>
<p>SELECT object_definition( &lt; objectID &gt; )<br />
GO</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gergo</title>
		<link>http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/#comment-75193</link>
		<dc:creator><![CDATA[Gergo]]></dc:creator>
		<pubDate>Tue, 08 Jun 2010 13:38:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5722#comment-75193</guid>
		<description><![CDATA[You may have to select from sys.server_triggers table. I mean the statements you should use at sqlcmd are the followings:


SELECT * FROM sys.server_triggers
GO

You can use the statement below to make sure what you will drop

SELECT object_definition()
GO

where the objectID is the object_id you got from the select and whose code you want to see.]]></description>
		<content:encoded><![CDATA[<p>You may have to select from sys.server_triggers table. I mean the statements you should use at sqlcmd are the followings:</p>
<p>SELECT * FROM sys.server_triggers<br />
GO</p>
<p>You can use the statement below to make sure what you will drop</p>
<p>SELECT object_definition()<br />
GO</p>
<p>where the objectID is the object_id you got from the select and whose code you want to see.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saby</title>
		<link>http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/#comment-69648</link>
		<dc:creator><![CDATA[Saby]]></dc:creator>
		<pubDate>Fri, 07 May 2010 10:51:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5722#comment-69648</guid>
		<description><![CDATA[hi Dave i m getting the same error but i dnt no the trigger name where i can drop the trigger please let me where i can find this trigger as i m enable to find out the trigger name]]></description>
		<content:encoded><![CDATA[<p>hi Dave i m getting the same error but i dnt no the trigger name where i can drop the trigger please let me where i can find this trigger as i m enable to find out the trigger name</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terry</title>
		<link>http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/#comment-64171</link>
		<dc:creator><![CDATA[Terry]]></dc:creator>
		<pubDate>Wed, 31 Mar 2010 21:29:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5722#comment-64171</guid>
		<description><![CDATA[Holy Crap... that was a life saver!!!! One of those where I thought I was in for it!  Thanks....]]></description>
		<content:encoded><![CDATA[<p>Holy Crap&#8230; that was a life saver!!!! One of those where I thought I was in for it!  Thanks&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darshan Shah</title>
		<link>http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/#comment-63956</link>
		<dc:creator><![CDATA[Darshan Shah]]></dc:creator>
		<pubDate>Mon, 29 Mar 2010 14:09:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5722#comment-63956</guid>
		<description><![CDATA[Thanks  Pinal , It solved my issue.]]></description>
		<content:encoded><![CDATA[<p>Thanks  Pinal , It solved my issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prashant</title>
		<link>http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/#comment-61769</link>
		<dc:creator><![CDATA[Prashant]]></dc:creator>
		<pubDate>Thu, 25 Feb 2010 14:31:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5722#comment-61769</guid>
		<description><![CDATA[Hi Pinal,

Thank you for such a nice article. While reading this I am puzzling with one question. Is it possible to track INVALID LOGINs to Sql Server. I mean if there is a Login attempt to Sql Server with incorrect login details, then a that should be recorded into one database table?

Please suggest.

Thanks Again]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Thank you for such a nice article. While reading this I am puzzling with one question. Is it possible to track INVALID LOGINs to Sql Server. I mean if there is a Login attempt to Sql Server with incorrect login details, then a that should be recorded into one database table?</p>
<p>Please suggest.</p>
<p>Thanks Again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KLEBER</title>
		<link>http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/#comment-57899</link>
		<dc:creator><![CDATA[KLEBER]]></dc:creator>
		<pubDate>Wed, 25 Nov 2009 15:13:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5722#comment-57899</guid>
		<description><![CDATA[Thanks a lot!  great help.

Firing these types of triggers or procedures should also be instructed to run the fix.

Thanks again.]]></description>
		<content:encoded><![CDATA[<p>Thanks a lot!  great help.</p>
<p>Firing these types of triggers or procedures should also be instructed to run the fix.</p>
<p>Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Morgan</title>
		<link>http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/#comment-57044</link>
		<dc:creator><![CDATA[Mark Morgan]]></dc:creator>
		<pubDate>Mon, 26 Oct 2009 18:05:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5722#comment-57044</guid>
		<description><![CDATA[Good article, however this fix will not work for me.  I am receiving the error on a cluster instance.  Remote DAC is disabled and I can&#039;t connect to the instance locally as the cluster node doesn&#039;t see any of the instances as local.  

Any advice / work-around would be most appreciated.]]></description>
		<content:encoded><![CDATA[<p>Good article, however this fix will not work for me.  I am receiving the error on a cluster instance.  Remote DAC is disabled and I can&#8217;t connect to the instance locally as the cluster node doesn&#8217;t see any of the instances as local.  </p>
<p>Any advice / work-around would be most appreciated.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

