<?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; Interesting Observation of Logon Trigger On All Servers &#8211; Solution</title>
	<atom:link href="http://blog.sqlauthority.com/2009/06/26/sql-server-interesting-observation-of-logon-trigger-on-all-servers-solution/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2009/06/26/sql-server-interesting-observation-of-logon-trigger-on-all-servers-solution/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Fri, 17 May 2013 15:26:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: rashmi</title>
		<link>http://blog.sqlauthority.com/2009/06/26/sql-server-interesting-observation-of-logon-trigger-on-all-servers-solution/#comment-272769</link>
		<dc:creator><![CDATA[rashmi]]></dc:creator>
		<pubDate>Fri, 06 Apr 2012 05:04:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5718#comment-272769</guid>
		<description><![CDATA[hello
 
i have fired the above query and then close the sql server . But the problem arises when i tried again to logon that server, this gives me an error &quot;LOGIN FAILED DUE TO THE EXECUTION OF TRIGGER&quot;. please give me any suggestion how can i login on that server .]]></description>
		<content:encoded><![CDATA[<p>hello</p>
<p>i have fired the above query and then close the sql server . But the problem arises when i tried again to logon that server, this gives me an error &#8220;LOGIN FAILED DUE TO THE EXECUTION OF TRIGGER&#8221;. please give me any suggestion how can i login on that server .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karzie Ramirez R</title>
		<link>http://blog.sqlauthority.com/2009/06/26/sql-server-interesting-observation-of-logon-trigger-on-all-servers-solution/#comment-265728</link>
		<dc:creator><![CDATA[Karzie Ramirez R]]></dc:creator>
		<pubDate>Wed, 21 Mar 2012 17:44:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5718#comment-265728</guid>
		<description><![CDATA[hi, i got problem. I was create trigger logon, but the reference of database don&#039;t exists in trigger. So, now trigger generate error at the login in SQL and i can&#039;t login at SQL Server 2008 R. How can i do, for login and disable trigger logon.

Thank you]]></description>
		<content:encoded><![CDATA[<p>hi, i got problem. I was create trigger logon, but the reference of database don&#8217;t exists in trigger. So, now trigger generate error at the login in SQL and i can&#8217;t login at SQL Server 2008 R. How can i do, for login and disable trigger logon.</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://blog.sqlauthority.com/2009/06/26/sql-server-interesting-observation-of-logon-trigger-on-all-servers-solution/#comment-224468</link>
		<dc:creator><![CDATA[Eric]]></dc:creator>
		<pubDate>Fri, 23 Dec 2011 15:07:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5718#comment-224468</guid>
		<description><![CDATA[Hi,
you never trap login failed messages]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
you never trap login failed messages</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nakul Vachhrajani</title>
		<link>http://blog.sqlauthority.com/2009/06/26/sql-server-interesting-observation-of-logon-trigger-on-all-servers-solution/#comment-215431</link>
		<dc:creator><![CDATA[Nakul Vachhrajani]]></dc:creator>
		<pubDate>Sun, 11 Dec 2011 15:01:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5718#comment-215431</guid>
		<description><![CDATA[Just another way to prove the fact that logon trigger can fire up multiple times:

Earlier in the year, I explored how SSMS has the potential to open up multiple connections to the SQL Server - http://beyondrelational.com/blogs/nakul/archive/2011/01/17/the-multiple-connections-of-ssms.aspx

Because there are multiple connections being established, multiple logins have to take place and therefore the login trigger has to be fired multiple times (once per connection).]]></description>
		<content:encoded><![CDATA[<p>Just another way to prove the fact that logon trigger can fire up multiple times:</p>
<p>Earlier in the year, I explored how SSMS has the potential to open up multiple connections to the SQL Server &#8211; <a href="http://beyondrelational.com/blogs/nakul/archive/2011/01/17/the-multiple-connections-of-ssms.aspx" rel="nofollow">http://beyondrelational.com/blogs/nakul/archive/2011/01/17/the-multiple-connections-of-ssms.aspx</a></p>
<p>Because there are multiple connections being established, multiple logins have to take place and therefore the login trigger has to be fired multiple times (once per connection).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER – Database Worst Practices – New Town and New Job and New Disasters Journey to SQLAuthority</title>
		<link>http://blog.sqlauthority.com/2009/06/26/sql-server-interesting-observation-of-logon-trigger-on-all-servers-solution/#comment-147567</link>
		<dc:creator><![CDATA[SQL SERVER – Database Worst Practices – New Town and New Job and New Disasters Journey to SQLAuthority]]></dc:creator>
		<pubDate>Tue, 12 Jul 2011 01:33:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5718#comment-147567</guid>
		<description><![CDATA[[...] It happens because multiple SQL Server services are running and also as intellisense is turned on. (Read more here) [...]]]></description>
		<content:encoded><![CDATA[<p>[...] It happens because multiple SQL Server services are running and also as intellisense is turned on. (Read more here) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Semedi</title>
		<link>http://blog.sqlauthority.com/2009/06/26/sql-server-interesting-observation-of-logon-trigger-on-all-servers-solution/#comment-90475</link>
		<dc:creator><![CDATA[Semedi]]></dc:creator>
		<pubDate>Fri, 01 Oct 2010 10:12:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5718#comment-90475</guid>
		<description><![CDATA[Hmm. I have a problem with Reporting Services and reports (WWW). After using your solution WWW RS doesn&#039;t work...]]></description>
		<content:encoded><![CDATA[<p>Hmm. I have a problem with Reporting Services and reports (WWW). After using your solution WWW RS doesn&#8217;t work&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vicky</title>
		<link>http://blog.sqlauthority.com/2009/06/26/sql-server-interesting-observation-of-logon-trigger-on-all-servers-solution/#comment-79612</link>
		<dc:creator><![CDATA[vicky]]></dc:creator>
		<pubDate>Sat, 10 Jul 2010 10:06:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5718#comment-79612</guid>
		<description><![CDATA[Hi Pinal,

I am using SQL Server 2005 and trying with the trigger query but when ever I am trying to execute the trigger statement it states “LOGON’ is an invalid event type.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>I am using SQL Server 2005 and trying with the trigger query but when ever I am trying to execute the trigger statement it states “LOGON’ is an invalid event type.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prasad</title>
		<link>http://blog.sqlauthority.com/2009/06/26/sql-server-interesting-observation-of-logon-trigger-on-all-servers-solution/#comment-58570</link>
		<dc:creator><![CDATA[Prasad]]></dc:creator>
		<pubDate>Sun, 13 Dec 2009 07:19:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5718#comment-58570</guid>
		<description><![CDATA[Dear Pinal,

Thanks for your sugeestion and it works fine.

Thanks
Prasad]]></description>
		<content:encoded><![CDATA[<p>Dear Pinal,</p>
<p>Thanks for your sugeestion and it works fine.</p>
<p>Thanks<br />
Prasad</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2009/06/26/sql-server-interesting-observation-of-logon-trigger-on-all-servers-solution/#comment-58536</link>
		<dc:creator><![CDATA[Pinal Dave]]></dc:creator>
		<pubDate>Sat, 12 Dec 2009 20:56:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5718#comment-58536</guid>
		<description><![CDATA[Hello Prasad,

you have bounded these two tables in such a way that there is no point to insert the first records. 
To insert records in these table at least one condition must be fulfilled:
1. Allow null in foreigk key column in any one table
2. Alter the foreign key constraint to NOCHECK in any one table
3. At least one record exists in any one table.

Kind Regards,
Pinal Dave]]></description>
		<content:encoded><![CDATA[<p>Hello Prasad,</p>
<p>you have bounded these two tables in such a way that there is no point to insert the first records.<br />
To insert records in these table at least one condition must be fulfilled:<br />
1. Allow null in foreigk key column in any one table<br />
2. Alter the foreign key constraint to NOCHECK in any one table<br />
3. At least one record exists in any one table.</p>
<p>Kind Regards,<br />
Pinal Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prasad</title>
		<link>http://blog.sqlauthority.com/2009/06/26/sql-server-interesting-observation-of-logon-trigger-on-all-servers-solution/#comment-58464</link>
		<dc:creator><![CDATA[Prasad]]></dc:creator>
		<pubDate>Sat, 12 Dec 2009 17:34:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5718#comment-58464</guid>
		<description><![CDATA[I have table 2 tables and i have primary key on both the tablea and Foregn key is primay key of others.

Now how to insert a data in table1.

Script as Follws:
Table 1 scrpt:
CREATE TABLE [dbo].[TEST](
	[ID] [int] NOT NULL,
	[ID1] [int] NOT NULL,
 CONSTRAINT [PK_TEST] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]

GO
USE [TEST]
GO
ALTER TABLE [dbo].[TEST]  WITH NOCHECK ADD  CONSTRAINT [FK_TEST1_TEST11] FOREIGN KEY([ID1])
REFERENCES [dbo].[TEST1] ([ID2])
GO
ALTER TABLE [dbo].[TEST] CHECK CONSTRAINT [FK_TEST1_TEST11]

========================================
Table2 script
===============================
CREATE TABLE [dbo].[TEST1](
	[ID2] [int] NOT NULL,
	[ID3] [int] NOT NULL,
 CONSTRAINT [PK_TEST1] PRIMARY KEY CLUSTERED 
(
	[ID2] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]

GO
USE [TEST]
GO
ALTER TABLE [dbo].[TEST1]  WITH NOCHECK ADD  CONSTRAINT [FK_TEST1_TEST] FOREIGN KEY([ID3])
REFERENCES [dbo].[TEST] ([ID])
GO
ALTER TABLE [dbo].[TEST1] CHECK CONSTRAINT [FK_TEST1_TEST]

====================

Dear Pinal

can u please explain me the how o insert data in these tables/

Thanks in advance]]></description>
		<content:encoded><![CDATA[<p>I have table 2 tables and i have primary key on both the tablea and Foregn key is primay key of others.</p>
<p>Now how to insert a data in table1.</p>
<p>Script as Follws:<br />
Table 1 scrpt:<br />
CREATE TABLE [dbo].[TEST](<br />
	[ID] [int] NOT NULL,<br />
	[ID1] [int] NOT NULL,<br />
 CONSTRAINT [PK_TEST] PRIMARY KEY CLUSTERED<br />
(<br />
	[ID] ASC<br />
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]<br />
) ON [PRIMARY]</p>
<p>GO<br />
USE [TEST]<br />
GO<br />
ALTER TABLE [dbo].[TEST]  WITH NOCHECK ADD  CONSTRAINT [FK_TEST1_TEST11] FOREIGN KEY([ID1])<br />
REFERENCES [dbo].[TEST1] ([ID2])<br />
GO<br />
ALTER TABLE [dbo].[TEST] CHECK CONSTRAINT [FK_TEST1_TEST11]</p>
<p>========================================<br />
Table2 script<br />
===============================<br />
CREATE TABLE [dbo].[TEST1](<br />
	[ID2] [int] NOT NULL,<br />
	[ID3] [int] NOT NULL,<br />
 CONSTRAINT [PK_TEST1] PRIMARY KEY CLUSTERED<br />
(<br />
	[ID2] ASC<br />
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]<br />
) ON [PRIMARY]</p>
<p>GO<br />
USE [TEST]<br />
GO<br />
ALTER TABLE [dbo].[TEST1]  WITH NOCHECK ADD  CONSTRAINT [FK_TEST1_TEST] FOREIGN KEY([ID3])<br />
REFERENCES [dbo].[TEST] ([ID])<br />
GO<br />
ALTER TABLE [dbo].[TEST1] CHECK CONSTRAINT [FK_TEST1_TEST]</p>
<p>====================</p>
<p>Dear Pinal</p>
<p>can u please explain me the how o insert data in these tables/</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: haliki</title>
		<link>http://blog.sqlauthority.com/2009/06/26/sql-server-interesting-observation-of-logon-trigger-on-all-servers-solution/#comment-55736</link>
		<dc:creator><![CDATA[haliki]]></dc:creator>
		<pubDate>Wed, 09 Sep 2009 05:22:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5718#comment-55736</guid>
		<description><![CDATA[hi all,
i need to create trigger that execute when update or add data.that trigger must separate the data to different type of age for example. and make that data to text document.how to do it...please help me...

thanks a lots]]></description>
		<content:encoded><![CDATA[<p>hi all,<br />
i need to create trigger that execute when update or add data.that trigger must separate the data to different type of age for example. and make that data to text document.how to do it&#8230;please help me&#8230;</p>
<p>thanks a lots</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Faizan</title>
		<link>http://blog.sqlauthority.com/2009/06/26/sql-server-interesting-observation-of-logon-trigger-on-all-servers-solution/#comment-54476</link>
		<dc:creator><![CDATA[Faizan]]></dc:creator>
		<pubDate>Wed, 05 Aug 2009 13:55:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5718#comment-54476</guid>
		<description><![CDATA[Hi All ,
I want to create a trigger that execute every day without any evet like without any DML command can i make this type of Trigger. i search from internet but i cannot get the answer. waiting for reply.

Thankx]]></description>
		<content:encoded><![CDATA[<p>Hi All ,<br />
I want to create a trigger that execute every day without any evet like without any DML command can i make this type of Trigger. i search from internet but i cannot get the answer. waiting for reply.</p>
<p>Thankx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dharmender Kumar</title>
		<link>http://blog.sqlauthority.com/2009/06/26/sql-server-interesting-observation-of-logon-trigger-on-all-servers-solution/#comment-53314</link>
		<dc:creator><![CDATA[Dharmender Kumar]]></dc:creator>
		<pubDate>Mon, 29 Jun 2009 09:09:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5718#comment-53314</guid>
		<description><![CDATA[Hi Pinal!
Actually when I create logon triger I normally use evendata() method of Sql Server is that right or not.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal!<br />
Actually when I create logon triger I normally use evendata() method of Sql Server is that right or not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hiten Sahai</title>
		<link>http://blog.sqlauthority.com/2009/06/26/sql-server-interesting-observation-of-logon-trigger-on-all-servers-solution/#comment-53309</link>
		<dc:creator><![CDATA[Hiten Sahai]]></dc:creator>
		<pubDate>Mon, 29 Jun 2009 06:18:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5718#comment-53309</guid>
		<description><![CDATA[Hi Pinal,
I am using SQL Server 2005 and trying with the trigger query but when ever I am trying to execute the trigger statement it states &quot;LOGON&#039; is an invalid event type. &quot;

Can you help me on that as I am new to trigger.
Thanks in advance]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,<br />
I am using SQL Server 2005 and trying with the trigger query but when ever I am trying to execute the trigger statement it states &#8220;LOGON&#8217; is an invalid event type. &#8221;</p>
<p>Can you help me on that as I am new to trigger.<br />
Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: showstoppa</title>
		<link>http://blog.sqlauthority.com/2009/06/26/sql-server-interesting-observation-of-logon-trigger-on-all-servers-solution/#comment-53296</link>
		<dc:creator><![CDATA[showstoppa]]></dc:creator>
		<pubDate>Sun, 28 Jun 2009 09:22:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5718#comment-53296</guid>
		<description><![CDATA[thanks for answer,  but why intellisense ? it has nothing in common with logon trigger, or maybe I`m wrong...]]></description>
		<content:encoded><![CDATA[<p>thanks for answer,  but why intellisense ? it has nothing in common with logon trigger, or maybe I`m wrong&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER – Fix : Error : 17892 Logon failed for login due to trigger execution. Changed database context to ‘master’. Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2009/06/26/sql-server-interesting-observation-of-logon-trigger-on-all-servers-solution/#comment-53285</link>
		<dc:creator><![CDATA[SQL SERVER – Fix : Error : 17892 Logon failed for login due to trigger execution. Changed database context to ‘master’. Journey to SQL Authority with Pinal Dave]]></dc:creator>
		<pubDate>Sat, 27 Jun 2009 07:20:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5718#comment-53285</guid>
		<description><![CDATA[[...] SQL SERVER – Interesting Observation of Logon Trigger On All Servers – Solution [...]]]></description>
		<content:encoded><![CDATA[<p>[...] SQL SERVER – Interesting Observation of Logon Trigger On All Servers – Solution [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
