<?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; Disable All Triggers on a Database &#8211; Disable All Triggers on All Servers</title>
	<atom:link href="http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/</link>
	<description>SQL, SQL Server, MySQL, Big Data and NoSQL</description>
	<lastBuildDate>Tue, 18 Jun 2013 16:46:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Amit Jha</title>
		<link>http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-462629</link>
		<dc:creator><![CDATA[Amit Jha]]></dc:creator>
		<pubDate>Wed, 24 Apr 2013 05:43:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-462629</guid>
		<description><![CDATA[Hello Pinal Sir
i have a question i want to block drop table permission on database to specific user please suggest me the way i can achieve this please remember one thing user have access to alter but not drop table..

Amit Jha]]></description>
		<content:encoded><![CDATA[<p>Hello Pinal Sir<br />
i have a question i want to block drop table permission on database to specific user please suggest me the way i can achieve this please remember one thing user have access to alter but not drop table..</p>
<p>Amit Jha</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Helder Gramacho</title>
		<link>http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-411837</link>
		<dc:creator><![CDATA[Helder Gramacho]]></dc:creator>
		<pubDate>Wed, 23 Jan 2013 13:47:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-411837</guid>
		<description><![CDATA[Forgot to add the closing parenthesis on the line:
exec (‘sp_msforeachtable “ALTER TABLE ? DISABLE TRIGGER all”‘)]]></description>
		<content:encoded><![CDATA[<p>Forgot to add the closing parenthesis on the line:<br />
exec (‘sp_msforeachtable “ALTER TABLE ? DISABLE TRIGGER all”‘)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Helder Gramacho</title>
		<link>http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-411835</link>
		<dc:creator><![CDATA[Helder Gramacho]]></dc:creator>
		<pubDate>Wed, 23 Jan 2013 13:41:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-411835</guid>
		<description><![CDATA[Hi to all.
To disable all DML triggers on all tables and VIEWS, i&#039;ve improved Manish Kaushik&#039;s procedure:

CREATE Procedure [dbo].[DisableAllTriggers]
AS
Declare @string varchar(8000)
Declare @tableName nvarchar(500)
Declare @triggerName nvarchar(500)
Declare cur cursor
for select s.name as tbname, t.name as trname FROM sys.triggers t
inner join sysobjects s
on (s.id = t.parent_id)
where s.xtype=&#039;V&#039;
exec (&#039;sp_msforeachtable &quot;ALTER TABLE ? DISABLE TRIGGER all&quot;&#039;
open cur
fetch next from cur into @tableName, @triggerName
while @@fetch_status = 0
begin
  set @string =&#039;DISABLE TRIGGER  &#039;+ @triggerName + &#039; ON &#039; + @tableName
print @string
exec (@string)
Fetch next from cur into @tableName, @triggerName
end
close cur
deallocate cur

go

Exec [dbo].[DisableAllTriggers]
go
drop procedure [dbo].[DisableAllTriggers]
go]]></description>
		<content:encoded><![CDATA[<p>Hi to all.<br />
To disable all DML triggers on all tables and VIEWS, i&#8217;ve improved Manish Kaushik&#8217;s procedure:</p>
<p>CREATE Procedure [dbo].[DisableAllTriggers]<br />
AS<br />
Declare @string varchar(8000)<br />
Declare @tableName nvarchar(500)<br />
Declare @triggerName nvarchar(500)<br />
Declare cur cursor<br />
for select s.name as tbname, t.name as trname FROM sys.triggers t<br />
inner join sysobjects s<br />
on (s.id = t.parent_id)<br />
where s.xtype=&#8217;V&#8217;<br />
exec (&#8216;sp_msforeachtable &#8220;ALTER TABLE ? DISABLE TRIGGER all&#8221;&#8216;<br />
open cur<br />
fetch next from cur into @tableName, @triggerName<br />
while @@fetch_status = 0<br />
begin<br />
  set @string =&#8217;DISABLE TRIGGER  &#8216;+ @triggerName + &#8216; ON &#8216; + @tableName<br />
print @string<br />
exec (@string)<br />
Fetch next from cur into @tableName, @triggerName<br />
end<br />
close cur<br />
deallocate cur</p>
<p>go</p>
<p>Exec [dbo].[DisableAllTriggers]<br />
go<br />
drop procedure [dbo].[DisableAllTriggers]<br />
go</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shaheen</title>
		<link>http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-405496</link>
		<dc:creator><![CDATA[shaheen]]></dc:creator>
		<pubDate>Wed, 09 Jan 2013 05:22:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-405496</guid>
		<description><![CDATA[hi.Thanks for the response.

Any idea how i can do it, mean how to script out the triggers.  I know you can select * from sys.triggers.]]></description>
		<content:encoded><![CDATA[<p>hi.Thanks for the response.</p>
<p>Any idea how i can do it, mean how to script out the triggers.  I know you can select * from sys.triggers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-405241</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Tue, 08 Jan 2013 13:23:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-405241</guid>
		<description><![CDATA[Simple method is to Script out the triggers and do find and replace]]></description>
		<content:encoded><![CDATA[<p>Simple method is to Script out the triggers and do find and replace</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shaheen</title>
		<link>http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-405125</link>
		<dc:creator><![CDATA[shaheen]]></dc:creator>
		<pubDate>Tue, 08 Jan 2013 05:55:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-405125</guid>
		<description><![CDATA[is there any way on how to change the database name in all existing triggers on a database.]]></description>
		<content:encoded><![CDATA[<p>is there any way on how to change the database name in all existing triggers on a database.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry Hung II</title>
		<link>http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-266712</link>
		<dc:creator><![CDATA[Jerry Hung II]]></dc:creator>
		<pubDate>Fri, 23 Mar 2012 14:58:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-266712</guid>
		<description><![CDATA[Keep in mind that this article is About DDL triggers, following script will generate sql statement for disabling triggers 


SELECT &#039;Disable Trigger &#039;+name+&#039; On &#039;+OBJECT_NAME(parent_id) FROM sys.triggers]]></description>
		<content:encoded><![CDATA[<p>Keep in mind that this article is About DDL triggers, following script will generate sql statement for disabling triggers </p>
<p>SELECT &#8216;Disable Trigger &#8216;+name+&#8217; On &#8216;+OBJECT_NAME(parent_id) FROM sys.triggers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Significance of Various Kinds of Triggers- Quiz &#8211; Puzzle &#8211; 2 of 31 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-230360</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Significance of Various Kinds of Triggers- Quiz &#8211; Puzzle &#8211; 2 of 31 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Tue, 03 Jan 2012 01:31:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-230360</guid>
		<description><![CDATA[[...] (Problems) of Triggers Server and Database Level DDL Triggers Examples and Explanation Disable All Triggers on a Database – Disable All Triggers on All Servers Interesting Observation of Logon Trigger On All Servers Disable Triggers – [...]]]></description>
		<content:encoded><![CDATA[<p>[...] (Problems) of Triggers Server and Database Level DDL Triggers Examples and Explanation Disable All Triggers on a Database – Disable All Triggers on All Servers Interesting Observation of Logon Trigger On All Servers Disable Triggers – [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-136151</link>
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Mon, 23 May 2011 04:35:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-136151</guid>
		<description><![CDATA[I love one line commands that do everything !

DISABLE TRIGGER ALL ON ALL SERVER;

Like this for indexes as well 

sp_MSforeachtable @command1=&quot;print &#039;?&#039; DBCC DBREINDEX (&#039;?&#039;)&quot;

Cheers on all the great content]]></description>
		<content:encoded><![CDATA[<p>I love one line commands that do everything !</p>
<p>DISABLE TRIGGER ALL ON ALL SERVER;</p>
<p>Like this for indexes as well </p>
<p>sp_MSforeachtable @command1=&#8221;print &#8216;?&#8217; DBCC DBREINDEX (&#8216;?&#8217;)&#8221;</p>
<p>Cheers on all the great content</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: deepak ugale</title>
		<link>http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-90055</link>
		<dc:creator><![CDATA[deepak ugale]]></dc:creator>
		<pubDate>Wed, 29 Sep 2010 09:54:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-90055</guid>
		<description><![CDATA[Hi All ,

To enable and disable all the trigger we can directly use 

DISABLE TRIGGERS  ALL ON ALL SERVER  ;]]></description>
		<content:encoded><![CDATA[<p>Hi All ,</p>
<p>To enable and disable all the trigger we can directly use </p>
<p>DISABLE TRIGGERS  ALL ON ALL SERVER  ;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pio Venantius</title>
		<link>http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-56815</link>
		<dc:creator><![CDATA[Pio Venantius]]></dc:creator>
		<pubDate>Tue, 20 Oct 2009 13:59:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-56815</guid>
		<description><![CDATA[Hi Manish,

This query

select name as tbname from sysobjects where id in(select parent_obj from sysobjects where xtype=’tr’)

that you have used to retrieve the list of tables in the database is not correct.

The query you have provided will include tables and views and  the Alter table statement will not work with a view.

I would use the following query to retrieve just the table names.

select table_name from information_schema.tables where table_type = &#039;base table&#039;

Thanks]]></description>
		<content:encoded><![CDATA[<p>Hi Manish,</p>
<p>This query</p>
<p>select name as tbname from sysobjects where id in(select parent_obj from sysobjects where xtype=’tr’)</p>
<p>that you have used to retrieve the list of tables in the database is not correct.</p>
<p>The query you have provided will include tables and views and  the Alter table statement will not work with a view.</p>
<p>I would use the following query to retrieve just the table names.</p>
<p>select table_name from information_schema.tables where table_type = &#8216;base table&#8217;</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: feras mazen taleb</title>
		<link>http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-53015</link>
		<dc:creator><![CDATA[feras mazen taleb]]></dc:creator>
		<pubDate>Mon, 15 Jun 2009 11:11:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-53015</guid>
		<description><![CDATA[thanks alot mr   Manish Kaushik

the Procedure DisableAllTriggers works well 

But Could you let me add small notice :)

we have to Add [ and ] to the table name I tried to 
exceute this procedure on my database and error occured 
because of my table name [References] this is a key word

set @string =’Alter table [‘+ @tableName + ‘] Disable trigger all’]]></description>
		<content:encoded><![CDATA[<p>thanks alot mr   Manish Kaushik</p>
<p>the Procedure DisableAllTriggers works well </p>
<p>But Could you let me add small notice :)</p>
<p>we have to Add [ and ] to the table name I tried to<br />
exceute this procedure on my database and error occured<br />
because of my table name [References] this is a key word</p>
<p>set @string =’Alter table [‘+ @tableName + ‘] Disable trigger all’</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: satish</title>
		<link>http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-46177</link>
		<dc:creator><![CDATA[satish]]></dc:creator>
		<pubDate>Sat, 31 Jan 2009 04:47:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-46177</guid>
		<description><![CDATA[Hi Pinal,

I am a beginner. In an interview I have been asked how to know whether a trigger is working ? or how to know whether the trigger will be fired at the correct time? 
can you please help me...

thanks in advance.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>I am a beginner. In an interview I have been asked how to know whether a trigger is working ? or how to know whether the trigger will be fired at the correct time?<br />
can you please help me&#8230;</p>
<p>thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vishal Kapoor</title>
		<link>http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-43369</link>
		<dc:creator><![CDATA[Vishal Kapoor]]></dc:creator>
		<pubDate>Mon, 29 Sep 2008 12:24:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-43369</guid>
		<description><![CDATA[Hi all,

To enable &amp; disable all the triggers and constraints we have a system defined Stored Proc

Print &#039;Disabling all Constraints&#039;
exec sp_MSforeachtable &#039;ALTER TABLE ? NOCHECK CONSTRAINT ALL&#039;

Print &#039;Disabling all Triggers&#039;
exec sp_MSforeachtable &#039;ALTER TABLE ? DISABLE TRIGGER ALL&#039;




Print &#039;Enabling all Constraints&#039;
exec sp_MSforeachtable &#039;ALTER TABLE ? CHECK CONSTRAINT ALL&#039;

Print &#039;Enabling all Triggers&#039;
exec sp_MSforeachtable &#039;ALTER TABLE ? ENABLE TRIGGER ALL&#039;


I hope this helps.

Thanks
Vishal Kapoor]]></description>
		<content:encoded><![CDATA[<p>Hi all,</p>
<p>To enable &amp; disable all the triggers and constraints we have a system defined Stored Proc</p>
<p>Print &#8216;Disabling all Constraints&#8217;<br />
exec sp_MSforeachtable &#8216;ALTER TABLE ? NOCHECK CONSTRAINT ALL&#8217;</p>
<p>Print &#8216;Disabling all Triggers&#8217;<br />
exec sp_MSforeachtable &#8216;ALTER TABLE ? DISABLE TRIGGER ALL&#8217;</p>
<p>Print &#8216;Enabling all Constraints&#8217;<br />
exec sp_MSforeachtable &#8216;ALTER TABLE ? CHECK CONSTRAINT ALL&#8217;</p>
<p>Print &#8216;Enabling all Triggers&#8217;<br />
exec sp_MSforeachtable &#8216;ALTER TABLE ? ENABLE TRIGGER ALL&#8217;</p>
<p>I hope this helps.</p>
<p>Thanks<br />
Vishal Kapoor</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: michel</title>
		<link>http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-42637</link>
		<dc:creator><![CDATA[michel]]></dc:creator>
		<pubDate>Wed, 10 Sep 2008 07:52:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-42637</guid>
		<description><![CDATA[Good Day! I&#039;m a beginner with regards to triggers. Currently, I&#039;ve already created a couple of triggers that are working just fine. But my problem is that one of our clients bought a new server. They want to transfer some databases in the new server and that would affect the triggers that are currently working. Is it possible for the trigger to work in different servers?  What will be the syntax for that?
Thanks in advance.]]></description>
		<content:encoded><![CDATA[<p>Good Day! I&#8217;m a beginner with regards to triggers. Currently, I&#8217;ve already created a couple of triggers that are working just fine. But my problem is that one of our clients bought a new server. They want to transfer some databases in the new server and that would affect the triggers that are currently working. Is it possible for the trigger to work in different servers?  What will be the syntax for that?<br />
Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nomvula</title>
		<link>http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-41784</link>
		<dc:creator><![CDATA[Nomvula]]></dc:creator>
		<pubDate>Tue, 19 Aug 2008 13:05:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-41784</guid>
		<description><![CDATA[hi Mr Dave
i&#039;ve seen your articles and are great, i need to create a script which will calculate a value based on previous value i.e ID        Depreciation
51004        0
54796        0
58585        -19079.347
62466        -113.57
66291        -113.57
70143        -113.57
74025        -113.57
77933        -113.57
81849        -113.57
on my script i need to calculate a Accummulative Depreciation on another field and the rule is on the first entry the Depreciation will remain the same, the second entry should take the value from the prevous entry add it to the current entry i.e for ID 51004 and 54796 AccumDepr will be 0 cause there&#039;s no Depreciation value this id 58585 should equal to 19079.347 cause there&#039;s no previous depr, and on ID 62466 my AccumDepr should be (-19079.347) + (-113.57) = -19192.91 and the next ID should be -19192.91 + -113.57 = -19306.48 and so forth...]]></description>
		<content:encoded><![CDATA[<p>hi Mr Dave<br />
i&#8217;ve seen your articles and are great, i need to create a script which will calculate a value based on previous value i.e ID        Depreciation<br />
51004        0<br />
54796        0<br />
58585        -19079.347<br />
62466        -113.57<br />
66291        -113.57<br />
70143        -113.57<br />
74025        -113.57<br />
77933        -113.57<br />
81849        -113.57<br />
on my script i need to calculate a Accummulative Depreciation on another field and the rule is on the first entry the Depreciation will remain the same, the second entry should take the value from the prevous entry add it to the current entry i.e for ID 51004 and 54796 AccumDepr will be 0 cause there&#8217;s no Depreciation value this id 58585 should equal to 19079.347 cause there&#8217;s no previous depr, and on ID 62466 my AccumDepr should be (-19079.347) + (-113.57) = -19192.91 and the next ID should be -19192.91 + -113.57 = -19306.48 and so forth&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pranil</title>
		<link>http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-41780</link>
		<dc:creator><![CDATA[Pranil]]></dc:creator>
		<pubDate>Tue, 19 Aug 2008 10:01:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-41780</guid>
		<description><![CDATA[Thanks a lot... Manish Kaushik!]]></description>
		<content:encoded><![CDATA[<p>Thanks a lot&#8230; Manish Kaushik!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER - Disable All the Trigger of Current Database Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-41773</link>
		<dc:creator><![CDATA[SQL SERVER - Disable All the Trigger of Current Database Journey to SQL Authority with Pinal Dave]]></dc:creator>
		<pubDate>Tue, 19 Aug 2008 01:31:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-41773</guid>
		<description><![CDATA[[...] 19, 2008 by pinaldave    I have previously written article about SQL SERVER - Disable All Triggers on a Database - Disable All Triggers on All Servers. This is alternate method to achieve the same [...]]]></description>
		<content:encoded><![CDATA[<p>[...] 19, 2008 by pinaldave    I have previously written article about SQL SERVER &#8211; Disable All Triggers on a Database &#8211; Disable All Triggers on All Servers. This is alternate method to achieve the same [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manish Kaushik</title>
		<link>http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-41749</link>
		<dc:creator><![CDATA[Manish Kaushik]]></dc:creator>
		<pubDate>Mon, 18 Aug 2008 05:30:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-41749</guid>
		<description><![CDATA[To disable all the trigger of current database.

CREATE Procedure [dbo].[DisableAllTriggers]
 
AS
      Declare @string varchar(8000)
      Declare @tableName nvarchar(500)
      Declare cur cursor 
            for select name as tbname from sysobjects where id in(select parent_obj from sysobjects where xtype=&#039;tr&#039;)
      open cur
      fetch next from cur into @tableName
      while @@fetch_status = 0
	     begin
            	set @string =&#039;Alter table &#039;+ @tableName + &#039; Disable trigger all&#039;             
                exec (@string)
            	Fetch next from cur into @tableName
	     end
      close cur
      deallocate cur


--To execute the SP---

Exec [DisableAllTriggers]]]></description>
		<content:encoded><![CDATA[<p>To disable all the trigger of current database.</p>
<p>CREATE Procedure [dbo].[DisableAllTriggers]</p>
<p>AS<br />
      Declare @string varchar(8000)<br />
      Declare @tableName nvarchar(500)<br />
      Declare cur cursor<br />
            for select name as tbname from sysobjects where id in(select parent_obj from sysobjects where xtype=&#8217;tr&#8217;)<br />
      open cur<br />
      fetch next from cur into @tableName<br />
      while @@fetch_status = 0<br />
	     begin<br />
            	set @string =&#8217;Alter table &#8216;+ @tableName + &#8216; Disable trigger all&#8217;<br />
                exec (@string)<br />
            	Fetch next from cur into @tableName<br />
	     end<br />
      close cur<br />
      deallocate cur</p>
<p>&#8211;To execute the SP&#8212;</p>
<p>Exec [DisableAllTriggers]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sudhan</title>
		<link>http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-41492</link>
		<dc:creator><![CDATA[Sudhan]]></dc:creator>
		<pubDate>Fri, 08 Aug 2008 15:33:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-41492</guid>
		<description><![CDATA[Hi Pinal
We use SQL Server 2000. I created a trigger, trying to update a field after a record is inserted.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal<br />
We use SQL Server 2000. I created a trigger, trying to update a field after a record is inserted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: YG</title>
		<link>http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-41314</link>
		<dc:creator><![CDATA[YG]]></dc:creator>
		<pubDate>Mon, 04 Aug 2008 18:22:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/29/sql-server-disable-all-triggers-on-a-database-disable-all-triggers-on-all-servers/#comment-41314</guid>
		<description><![CDATA[How would

 DISABLE TRIGGER Person.uAddress ON AdventureWorks; 

disable all triggers on a database?  Person.uAddress is right there]]></description>
		<content:encoded><![CDATA[<p>How would</p>
<p> DISABLE TRIGGER Person.uAddress ON AdventureWorks; </p>
<p>disable all triggers on a database?  Person.uAddress is right there</p>
]]></content:encoded>
	</item>
</channel>
</rss>
