Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 What is the Best Trigger to use?

Author  Topic 

Danny4003
Starting Member

40 Posts

Posted - 2006-10-25 : 16:42:42
Hi can anybody tell what is the best Trigger to use.!?

Danny Dubroc

X002548
Not Just a Number

15586 Posts

Posted - 2006-10-25 : 16:55:01
That answer would be none

What are you trying to do


Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

Danny4003
Starting Member

40 Posts

Posted - 2006-10-25 : 16:59:34
It was just a general question sorry
Danny
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2006-10-25 : 17:19:26
Is this an interview or homework question? The reason why I ask is that it is a very strange question to ask. There is no best trigger to use. If you need to use a trigger, for whatever reason, then you go with the one that fits your requirements.

Tara Kizer
Go to Top of Page

Danny4003
Starting Member

40 Posts

Posted - 2006-10-25 : 17:40:21
okay thx. so just whatever i need to use it for i could?
this is not an interview or homework. this is just a general question.
I'm still pretty new at using SQL and I love it just a little confusing thats all.
But I love it because I love using code. I wish I could learn other languages in a Code Aspect.
However for right now I am using SQL for work and still trying to get very fluent with it.
Thanks
Danny
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2006-10-25 : 17:46:40
Well you should avoid triggers at all costs. You will rarely need them if ever. I don't have a single trigger in my production environment.

Tara Kizer
Go to Top of Page

Danny4003
Starting Member

40 Posts

Posted - 2006-10-25 : 18:28:56
I'm sorry but I must be kinda dumb but can you tell me the difference Between After and Instead of Triggers.
Please bear with me; Break this down to where a very intermediate SQL Designer could understand.

Thanks
Danny
Go to Top of Page

Danny4003
Starting Member

40 Posts

Posted - 2006-10-25 : 18:29:56
quote:
Originally posted by Danny4003

I'm sorry but I must be kinda dumb but can you tell me the difference Between After and Instead of Triggers.
Please bear with me; Break this down to where a very intermediate SQL Designer could understand.

Thanks
Danny
sorry Beginner not intermediate

Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2006-10-25 : 18:41:05
Have you looked in Books Online?
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2006-10-25 : 21:50:39
I use triggers, but fr the simplest of tasks.

For exampl, if I want to tract data audit/change issues, I use them, other than that I don't.

I limit all of my database access to stored procedures, so I don't really need trigers.

In a "wild West" environment they are probably needed more.

But, They do impact performance if used unwisely.

What's the question? Do you have something you need to accomplish?

Oh, and there is no best ________(Whatever, fill in the blank) to use), you do what you need to do



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page
   

- Advertisement -