﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by Tsepo Mohlapo  / Disable / Enable All triggers on all tables in sql server 2005 / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 21 May 2013 19:13:51 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Disable / Enable All triggers on all tables in sql server 2005</title><link>http://www.sqlservercentral.com/Forums/Topic903710-2675-1.aspx</link><description>sp_msforeachtable is a better option.sp_msforeachDb is another useful procedure.</description><pubDate>Thu, 22 Apr 2010 23:04:28 GMT</pubDate><dc:creator>Atif-ullah Sheikh</dc:creator></item><item><title>RE: Disable / Enable All triggers on all tables in sql server 2005</title><link>http://www.sqlservercentral.com/Forums/Topic903710-2675-1.aspx</link><description>[font="Verdana"][code="other"]SELECT 'ALTER TABLE ['+ SC.NAME+'].[' + PB.NAME + '] ENABLE TRIGGER ALL' FROM SYS.TRIGGERS TJOIN SYS.ALL_OBJECTS OB ON OB.OBJECT_ID = T.OBJECT_IDJOIN SYS.ALL_OBJECTS PB ON PB.OBJECT_ID = OB.PARENT_OBJECT_IDJOIN SYS.SCHEMAS SC ON SC.SCHEMA_ID = PB.SCHEMA_ID [/code]is this will be enough ? or even efficient?[/font]</description><pubDate>Mon, 19 Apr 2010 01:06:39 GMT</pubDate><dc:creator>Abrar Ahmad_</dc:creator></item><item><title>RE: Disable / Enable All triggers on all tables in sql server 2005</title><link>http://www.sqlservercentral.com/Forums/Topic903710-2675-1.aspx</link><description>Thanks Jammie,That will definately work as well in both 2005 and 2008 as the system stored procedure sp_msforeachtable  is included in the latest version, and intelli sense actually pick it up, well spotted.</description><pubDate>Sun, 18 Apr 2010 23:59:59 GMT</pubDate><dc:creator>tsepo</dc:creator></item><item><title>RE: Disable / Enable All triggers on all tables in sql server 2005</title><link>http://www.sqlservercentral.com/Forums/Topic903710-2675-1.aspx</link><description>Hi there,Another way that I use which I think will do the same thing is:--Disable all triggerssp_msforeachtable "ALTER TABLE ? Disable TRIGGER all"Then when your ready to enable them again:--Enable all triggerssp_msforeachtable "ALTER TABLE ? Enable TRIGGER all"I've used this plenty of times in SQL2005 and although I haven't tried in 2008 as yet, I expect it will work.</description><pubDate>Sun, 18 Apr 2010 23:50:42 GMT</pubDate><dc:creator>Jamie Burmeister</dc:creator></item><item><title>Disable / Enable All triggers on all tables in sql server 2005</title><link>http://www.sqlservercentral.com/Forums/Topic903710-2675-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/scripts/Disable+%2f+Enable+All+triggers/70031/"&gt;Disable / Enable All triggers on all tables in sql server 2005&lt;/A&gt;[/B]</description><pubDate>Wed, 14 Apr 2010 19:43:34 GMT</pubDate><dc:creator>tsepo</dc:creator></item></channel></rss>