<?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; Disadvantages (Problems) of Triggers</title>
	<atom:link href="http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/</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: deepank</title>
		<link>http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-474383</link>
		<dc:creator><![CDATA[deepank]]></dc:creator>
		<pubDate>Mon, 13 May 2013 12:22:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-474383</guid>
		<description><![CDATA[i wanna know about DATA MASSAGING...Can anyone xplain this to me?]]></description>
		<content:encoded><![CDATA[<p>i wanna know about DATA MASSAGING&#8230;Can anyone xplain this to me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pksingh</title>
		<link>http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-453101</link>
		<dc:creator><![CDATA[pksingh]]></dc:creator>
		<pubDate>Wed, 10 Apr 2013 10:35:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-453101</guid>
		<description><![CDATA[your Last Statement is wrong
&quot;Triggers run every time when the database fields are updated and it is overhead on system. It makes system run slower.&quot;

-------------------------------------------------------------
i have &quot;emp&quot; table that have id,name columns  

i created a trigger that is below-
-------------------------------------
alter trigger trgEmpInsert
on emp after insert
as begin
declare @a int
select @a=id from inserted
insert into emp1(id) values(@a)

end
-------------------------------------------
Here Emp1 is another table that have the same schema as emp

 i add a new column in emp table as below-
--------------------------------------------------------
alter table emp
add country1 varchar(33)
----------------------------------------
when i checked the emp1 table after this we does&#039;t get any row f inserted from trigger .
-------------------------------------------------
Before Answering any concept please practical it in SQL server .

let me know if i am wrong .

-------------------------------------------------------------------
all Query which i am used to test the above concept
-------------------------------------------------------------------

CREATE TABLE emp(
	id int (10) ,
	name nvarchar(50) ,
	
)

CREATE TABLE emp1(
	id int (10) ,
	name nvarchar(50) ,
	
)



insert into emp(id,name) values(1,&#039;ram&#039;)
go 100




alter trigger abc1
on emp after insert
as begin
declare @a int
select @a=id from inserted
insert into emp1(id) values(@a)
end



alter table emp
add country1 varchar(33)]]></description>
		<content:encoded><![CDATA[<p>your Last Statement is wrong<br />
&#8220;Triggers run every time when the database fields are updated and it is overhead on system. It makes system run slower.&#8221;</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
i have &#8220;emp&#8221; table that have id,name columns  </p>
<p>i created a trigger that is below-<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
alter trigger trgEmpInsert<br />
on emp after insert<br />
as begin<br />
declare @a int<br />
select @a=id from inserted<br />
insert into emp1(id) values(@a)</p>
<p>end<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Here Emp1 is another table that have the same schema as emp</p>
<p> i add a new column in emp table as below-<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
alter table emp<br />
add country1 varchar(33)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
when i checked the emp1 table after this we does&#8217;t get any row f inserted from trigger .<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Before Answering any concept please practical it in SQL server .</p>
<p>let me know if i am wrong .</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
all Query which i am used to test the above concept<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>CREATE TABLE emp(<br />
	id int (10) ,<br />
	name nvarchar(50) ,</p>
<p>)</p>
<p>CREATE TABLE emp1(<br />
	id int (10) ,<br />
	name nvarchar(50) ,</p>
<p>)</p>
<p>insert into emp(id,name) values(1,&#8217;ram&#8217;)<br />
go 100</p>
<p>alter trigger abc1<br />
on emp after insert<br />
as begin<br />
declare @a int<br />
select @a=id from inserted<br />
insert into emp1(id) values(@a)<br />
end</p>
<p>alter table emp<br />
add country1 varchar(33)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sailu</title>
		<link>http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-412127</link>
		<dc:creator><![CDATA[Sailu]]></dc:creator>
		<pubDate>Thu, 24 Jan 2013 03:28:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-412127</guid>
		<description><![CDATA[Hi
What are some of the issues that could be encountered when using triggers??]]></description>
		<content:encoded><![CDATA[<p>Hi<br />
What are some of the issues that could be encountered when using triggers??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-405244</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Tue, 08 Jan 2013 13:33:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-405244</guid>
		<description><![CDATA[What is the difficulty you are having with more than 8 columns?]]></description>
		<content:encoded><![CDATA[<p>What is the difficulty you are having with more than 8 columns?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-405243</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Tue, 08 Jan 2013 13:30:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-405243</guid>
		<description><![CDATA[Refer SQL Server help file. It has lot of useful information]]></description>
		<content:encoded><![CDATA[<p>Refer SQL Server help file. It has lot of useful information</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: $ai</title>
		<link>http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-404831</link>
		<dc:creator><![CDATA[$ai]]></dc:creator>
		<pubDate>Mon, 07 Jan 2013 12:58:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-404831</guid>
		<description><![CDATA[how to handle more than 8 columns in triggers ....]]></description>
		<content:encoded><![CDATA[<p>how to handle more than 8 columns in triggers &#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rose</title>
		<link>http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-371753</link>
		<dc:creator><![CDATA[Rose]]></dc:creator>
		<pubDate>Fri, 09 Nov 2012 15:41:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-371753</guid>
		<description><![CDATA[Nice article, your articles always manage to stay current throughout the test of time!

There is one thing I use triggers for and that is when I need exact audit records of every change made to each record in a table - although I hasten to add that what I do within the trigger is get the batch of records which have been changed and call a stored procedure from that record set so as much of my code as possible is easily visible under procedures.

Is there a better way for me to capture audit records or is a DML trigger the right thing to do here?  I implemented it in my dev version of a program (as we have a lot of people here who would have access to the DB so I can&#039;t rely on application-side auditing, sadly!) but if I should have taken another approach then I would prefer to implement it before I move to live!!

Thank you once again for yet another great article,

Rose]]></description>
		<content:encoded><![CDATA[<p>Nice article, your articles always manage to stay current throughout the test of time!</p>
<p>There is one thing I use triggers for and that is when I need exact audit records of every change made to each record in a table &#8211; although I hasten to add that what I do within the trigger is get the batch of records which have been changed and call a stored procedure from that record set so as much of my code as possible is easily visible under procedures.</p>
<p>Is there a better way for me to capture audit records or is a DML trigger the right thing to do here?  I implemented it in my dev version of a program (as we have a lot of people here who would have access to the DB so I can&#8217;t rely on application-side auditing, sadly!) but if I should have taken another approach then I would prefer to implement it before I move to live!!</p>
<p>Thank you once again for yet another great article,</p>
<p>Rose</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vinodjohn</title>
		<link>http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-341028</link>
		<dc:creator><![CDATA[vinodjohn]]></dc:creator>
		<pubDate>Wed, 05 Sep 2012 06:39:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-341028</guid>
		<description><![CDATA[if trigger fired more than 1 table?
1. insert data to table1 from program.
2. table1 trigger fired to table2 
3. table2 trigger fired to table3

is it possible????]]></description>
		<content:encoded><![CDATA[<p>if trigger fired more than 1 table?<br />
1. insert data to table1 from program.<br />
2. table1 trigger fired to table2<br />
3. table2 trigger fired to table3</p>
<p>is it possible????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: skmishra202</title>
		<link>http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-242570</link>
		<dc:creator><![CDATA[skmishra202]]></dc:creator>
		<pubDate>Mon, 23 Jan 2012 10:25:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-242570</guid>
		<description><![CDATA[Thanks for nice article]]></description>
		<content:encoded><![CDATA[<p>Thanks for nice article</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: munirajan</title>
		<link>http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-239991</link>
		<dc:creator><![CDATA[munirajan]]></dc:creator>
		<pubDate>Wed, 18 Jan 2012 05:11:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-239991</guid>
		<description><![CDATA[hi 
hard to say...

kindly eradicate the application in the below content ...

Triggers execute invisible to client-application application. They are not visible or can be traced in debugging code.

Dont mistake me sir
Munirajan.T]]></description>
		<content:encoded><![CDATA[<p>hi<br />
hard to say&#8230;</p>
<p>kindly eradicate the application in the below content &#8230;</p>
<p>Triggers execute invisible to client-application application. They are not visible or can be traced in debugging code.</p>
<p>Dont mistake me sir<br />
Munirajan.T</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/05/24/sql-server-disadvantages-problems-of-triggers/#comment-230358</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:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-230358</guid>
		<description><![CDATA[[...] Server Interview Questions and Answers ISBN: 1466405643 Page#24-25 Disadvantages (Problems) of Triggers Server and Database Level DDL Triggers Examples and Explanation Disable All Triggers on a Database [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Server Interview Questions and Answers ISBN: 1466405643 Page#24-25 Disadvantages (Problems) of Triggers Server and Database Level DDL Triggers Examples and Explanation Disable All Triggers on a Database [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shantanu Gupta</title>
		<link>http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-164238</link>
		<dc:creator><![CDATA[Shantanu Gupta]]></dc:creator>
		<pubDate>Thu, 01 Sep 2011 09:18:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-164238</guid>
		<description><![CDATA[Hi Pinal,

Just wanted to know about logging data modification.

I have seen to ways of tracking data change(DML). 
1. Using Triggers
2. Keeping columns in same table for Added Date, Added By, Modified Date, Modified By.

Using approach(1), I can write trigger for Insert/Delete/Update on each table to log changes and hence can apply Foreign key relationship and other constraints like Unique key constraints on all the tables as per requirement.

But I didn&#039;t understand how it is possible to apply various constrains using approach(2).
Since I have to make composite unique key and have to consider many more columns.

Is there any design issues in database tables. What is the suggested way for approach(2) to log data.

Which approach is better.

Also I have come to know from some of my collegues that Triggers do no fires on bulk insert queries is it true.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Just wanted to know about logging data modification.</p>
<p>I have seen to ways of tracking data change(DML).<br />
1. Using Triggers<br />
2. Keeping columns in same table for Added Date, Added By, Modified Date, Modified By.</p>
<p>Using approach(1), I can write trigger for Insert/Delete/Update on each table to log changes and hence can apply Foreign key relationship and other constraints like Unique key constraints on all the tables as per requirement.</p>
<p>But I didn&#8217;t understand how it is possible to apply various constrains using approach(2).<br />
Since I have to make composite unique key and have to consider many more columns.</p>
<p>Is there any design issues in database tables. What is the suggested way for approach(2) to log data.</p>
<p>Which approach is better.</p>
<p>Also I have come to know from some of my collegues that Triggers do no fires on bulk insert queries is it true.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ronen</title>
		<link>http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-156100</link>
		<dc:creator><![CDATA[Ronen]]></dc:creator>
		<pubDate>Thu, 11 Aug 2011 07:22:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-156100</guid>
		<description><![CDATA[Hello, 
How can I we get the values of the records being updated on the Table and not get updated due to Where Condition 
CREATE TABLE [dbo].[Test](
	[id] [bigint] NULL,
	[description] [varchar](50) NULL
)
GO
INSERT INTO [dbo].[Test]([id],[ description])
Values (1,’SQL2005’)
GO
Update [Test] Set [description] = ‘SQL2008’ where [ID] = 3
In above case I need to write a trigger where I can find the Value of Field Description Which is SQL2008, 
Instead of Trigger gives the values but only if the Records are updated]]></description>
		<content:encoded><![CDATA[<p>Hello,<br />
How can I we get the values of the records being updated on the Table and not get updated due to Where Condition<br />
CREATE TABLE [dbo].[Test](<br />
	[id] [bigint] NULL,<br />
	[description] [varchar](50) NULL<br />
)<br />
GO<br />
INSERT INTO [dbo].[Test]([id],[ description])<br />
Values (1,’SQL2005’)<br />
GO<br />
Update [Test] Set [description] = ‘SQL2008’ where [ID] = 3<br />
In above case I need to write a trigger where I can find the Value of Field Description Which is SQL2008,<br />
Instead of Trigger gives the values but only if the Records are updated</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-134582</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Mon, 16 May 2011 10:27:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-134582</guid>
		<description><![CDATA[You can have it as part of INSERT trigger code]]></description>
		<content:encoded><![CDATA[<p>You can have it as part of INSERT trigger code</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ali</title>
		<link>http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-134119</link>
		<dc:creator><![CDATA[Ali]]></dc:creator>
		<pubDate>Thu, 12 May 2011 11:59:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-134119</guid>
		<description><![CDATA[Hello,

How can we replace a trigger by a stored procedure?

A trigger fires on UPDATE / INSERT or DELETE statement, how can we execute the stored procedure after an insert?

Thank you.]]></description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>How can we replace a trigger by a stored procedure?</p>
<p>A trigger fires on UPDATE / INSERT or DELETE statement, how can we execute the stored procedure after an insert?</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Afrina Hossain</title>
		<link>http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-126334</link>
		<dc:creator><![CDATA[Afrina Hossain]]></dc:creator>
		<pubDate>Sun, 03 Apr 2011 09:24:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-126334</guid>
		<description><![CDATA[Sir,
How can I maitain Audit Trail without using trigger???]]></description>
		<content:encoded><![CDATA[<p>Sir,<br />
How can I maitain Audit Trail without using trigger???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Forrest</title>
		<link>http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-123909</link>
		<dc:creator><![CDATA[Forrest]]></dc:creator>
		<pubDate>Sat, 19 Mar 2011 05:40:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-123909</guid>
		<description><![CDATA[It seems that Triggers are being used extensively EXACTLY for foreign key maintenance.

I still think there is wisdom in manually processing table links; especially if you are pruning dupes from the parent table, and don&#039;t want to loose referential integrity with the child tables.]]></description>
		<content:encoded><![CDATA[<p>It seems that Triggers are being used extensively EXACTLY for foreign key maintenance.</p>
<p>I still think there is wisdom in manually processing table links; especially if you are pruning dupes from the parent table, and don&#8217;t want to loose referential integrity with the child tables.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Forrest</title>
		<link>http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-123889</link>
		<dc:creator><![CDATA[Forrest]]></dc:creator>
		<pubDate>Sat, 19 Mar 2011 02:36:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-123889</guid>
		<description><![CDATA[Dave,

Thanks for the heads up - it sounds like people are using Triggers for things which they probably ought not to... for example cascading foreign key relationships.

I work in an environment where we do lots of bulk imports into clusters of child/parent tables, and if we had triggers going off each time we did anything we would have 1) a very slow environment, and 2) many many erroneous table links.

On the other hand - we also rely extensively on non-clustered indexes in order to make our reporting work in a realistic amount of time.

Is it appropriate to use a trigger to disable all table indexes before committing an UPDATE or INSERT statement, and then to rebuild the indexes AFTER the statement processes?

Thanks

Forrest]]></description>
		<content:encoded><![CDATA[<p>Dave,</p>
<p>Thanks for the heads up &#8211; it sounds like people are using Triggers for things which they probably ought not to&#8230; for example cascading foreign key relationships.</p>
<p>I work in an environment where we do lots of bulk imports into clusters of child/parent tables, and if we had triggers going off each time we did anything we would have 1) a very slow environment, and 2) many many erroneous table links.</p>
<p>On the other hand &#8211; we also rely extensively on non-clustered indexes in order to make our reporting work in a realistic amount of time.</p>
<p>Is it appropriate to use a trigger to disable all table indexes before committing an UPDATE or INSERT statement, and then to rebuild the indexes AFTER the statement processes?</p>
<p>Thanks</p>
<p>Forrest</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: srinivas</title>
		<link>http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-107158</link>
		<dc:creator><![CDATA[srinivas]]></dc:creator>
		<pubDate>Tue, 21 Dec 2010 12:07:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-107158</guid>
		<description><![CDATA[your explanation is super.]]></description>
		<content:encoded><![CDATA[<p>your explanation is super.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tranquilizer</title>
		<link>http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-88153</link>
		<dc:creator><![CDATA[Tranquilizer]]></dc:creator>
		<pubDate>Fri, 17 Sep 2010 20:25:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-88153</guid>
		<description><![CDATA[Pinal,

I totally agree with you on this.
To add to your thoughts, triggers are misused most of the times thereby affecting db performance. Also, all app logic should be part of the application process flow to keep things simple and visible like you said, which makes debugging easier as well.
I have trouble explaining this concept so some people.

Thanks for putting it in writing!]]></description>
		<content:encoded><![CDATA[<p>Pinal,</p>
<p>I totally agree with you on this.<br />
To add to your thoughts, triggers are misused most of the times thereby affecting db performance. Also, all app logic should be part of the application process flow to keep things simple and visible like you said, which makes debugging easier as well.<br />
I have trouble explaining this concept so some people.</p>
<p>Thanks for putting it in writing!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rajneesh</title>
		<link>http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-84714</link>
		<dc:creator><![CDATA[rajneesh]]></dc:creator>
		<pubDate>Fri, 20 Aug 2010 08:52:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-84714</guid>
		<description><![CDATA[use of instead of and after trigger..
after trigger u know already..
but instead of 
u can check constraint,suppose foreign key is not their then u can use.
this is old way.

exp:

alter trigger trg1 on emp1 instead of insert
as
declare @empid int;
select @empid=isnumeric(empid) from inserted;
if(@empid=1)
print(&#039;numeric&#039;);

else
print(&#039;not numeric&#039;);


Rajneesh Hajela Gwalior (M.P.)]]></description>
		<content:encoded><![CDATA[<p>use of instead of and after trigger..<br />
after trigger u know already..<br />
but instead of<br />
u can check constraint,suppose foreign key is not their then u can use.<br />
this is old way.</p>
<p>exp:</p>
<p>alter trigger trg1 on emp1 instead of insert<br />
as<br />
declare @empid int;<br />
select @empid=isnumeric(empid) from inserted;<br />
if(@empid=1)<br />
print(&#8216;numeric&#8217;);</p>
<p>else<br />
print(&#8216;not numeric&#8217;);</p>
<p>Rajneesh Hajela Gwalior (M.P.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shivlila</title>
		<link>http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-84416</link>
		<dc:creator><![CDATA[shivlila]]></dc:creator>
		<pubDate>Tue, 17 Aug 2010 13:02:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-84416</guid>
		<description><![CDATA[Very nice article. I agree whatever u wrote.]]></description>
		<content:encoded><![CDATA[<p>Very nice article. I agree whatever u wrote.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ammar</title>
		<link>http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-79559</link>
		<dc:creator><![CDATA[Ammar]]></dc:creator>
		<pubDate>Sat, 10 Jul 2010 02:36:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-79559</guid>
		<description><![CDATA[madhusudan sir,
If MSSQL server has any disadvantges that may cause ant error in compiling microsoft surely couldont produce a new version 2008 

are U understand me sir?]]></description>
		<content:encoded><![CDATA[<p>madhusudan sir,<br />
If MSSQL server has any disadvantges that may cause ant error in compiling microsoft surely couldont produce a new version 2008 </p>
<p>are U understand me sir?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gouse pasha</title>
		<link>http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-77879</link>
		<dc:creator><![CDATA[Gouse pasha]]></dc:creator>
		<pubDate>Mon, 28 Jun 2010 10:05:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-77879</guid>
		<description><![CDATA[Hi Subramanyam,

These two are related to DML triggers.

After triggers are executed after executing the DML events i.e.,the trigger adn the events both are executed.These triggers can be executed only on tables.

Instead of triggers are executed instead of executing the DML events i.e., the trigger is executed without executing the DML event.  These triggers can be executed on tables and views.]]></description>
		<content:encoded><![CDATA[<p>Hi Subramanyam,</p>
<p>These two are related to DML triggers.</p>
<p>After triggers are executed after executing the DML events i.e.,the trigger adn the events both are executed.These triggers can be executed only on tables.</p>
<p>Instead of triggers are executed instead of executing the DML events i.e., the trigger is executed without executing the DML event.  These triggers can be executed on tables and views.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhusudan</title>
		<link>http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-65386</link>
		<dc:creator><![CDATA[madhusudan]]></dc:creator>
		<pubDate>Sun, 18 Apr 2010 06:24:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/24/sql-server-disadvantages-problems-of-triggers/#comment-65386</guid>
		<description><![CDATA[any can tell me main disadvantage of sql server.]]></description>
		<content:encoded><![CDATA[<p>any can tell me main disadvantage of sql server.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
