SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Are Triggers a "legacy" Feature? (Database Weekly, Nov 08 2008)


Are Triggers a "legacy" Feature? (Database Weekly, Nov 08 2008)

Author
Message
Sergiy
Sergiy
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: General Forum Members
Points: 10338 Visits: 11961
quackhandle1975 (4/5/2013)

I have seen Cursors in triggers bring systems to a complete halt (I know as I had to debug it!). Best avoided IMHO.


I've seen 7 peple killed in a crash because American tourist were driving the van on the wrong side on a New Zealand road.
Best not to let Americans to drive.


If you find this comment stupid do not worry, I think of it the same way.
Just keep in mind - it carries the same logic as your comment about triggers above.
Robert-378556
Robert-378556
SSCommitted
SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)

Group: General Forum Members
Points: 1768 Visits: 1010
Sergiy, you made my day lighter :-D
quackhandle1975
quackhandle1975
Hall of Fame
Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)

Group: General Forum Members
Points: 3239 Visits: 1240
Sergiy (4/8/2013)
quackhandle1975 (4/5/2013)

I have seen Cursors in triggers bring systems to a complete halt (I know as I had to debug it!). Best avoided IMHO.


I've seen 7 peple killed in a crash because American tourist were driving the van on the wrong side on a New Zealand road.
Best not to let Americans to drive.


If you find this comment stupid do not worry, I think of it the same way.
Just keep in mind - it carries the same logic as your comment about triggers above.


Odd reply, Sergiy. My comment was aimed at beginners and programmers who find themselves coding t-sql.
You may want to check out the following sites:

http://www.sqlbook.com/SQL/Avoiding-using-SQL-Cursors-20.aspx

qh

Who looks outside, dreams; who looks inside, awakes. – Carl Jung.
Sergiy
Sergiy
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: General Forum Members
Points: 10338 Visits: 11961
quackhandle1975 (4/8/2013)
Odd reply, Sergiy. My comment was aimed at beginners and programmers who find themselves coding t-sql.


I reread your comment 5 times more - it does not say anything about "beginners and programmers who find themselves coding t-sql".
Not a word. Not a hint.

Intead - you put the blame on triggers and called to avoid them.
Pretty stupid call.
Sorry.

I've seen .Net developers bringing dows 2 pretty powerful servers down by misusing remote calls in procedures.
And exausting server tresources by using front-end formatting in views.

What should we avoid here - remote calls, procedures, view?
Because we won't avoid stupidity and incompetence - it's ours everything!
Orlando Colamatteo
Orlando Colamatteo
SSChampion
SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)

Group: General Forum Members
Points: 14943 Visits: 14396
Sergiy (4/8/2013)
quackhandle1975 (4/8/2013)
Odd reply, Sergiy. My comment was aimed at beginners and programmers who find themselves coding t-sql.


I reread your comment 5 times more - it does not say anything about "beginners and programmers who find themselves coding t-sql".
Not a word. Not a hint.

Intead - you put the blame on triggers and called to avoid them.
Pretty stupid call.
Sorry.

I've seen .Net developers bringing dows 2 pretty powerful servers down by misusing remote calls in procedures.
And exausting server tresources by using front-end formatting in views.

What should we avoid here - remote calls, procedures, view?
Because we won't avoid stupidity and incompetence - it's ours everything!

How ridiculous. Why take everything to the absurd Sergiy? If you want to laugh in the face of best practices, go ahead, enjoy, but where is it your place to tear down those that are attempting to provide real help to those seeking assistance?

__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
quackhandle1975
quackhandle1975
Hall of Fame
Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)

Group: General Forum Members
Points: 3239 Visits: 1240
Sergiy (4/8/2013)
quackhandle1975 (4/8/2013)
Odd reply, Sergiy. My comment was aimed at beginners and programmers who find themselves coding t-sql.


I reread your comment 5 times more - it does not say anything about "beginners and programmers who find themselves coding t-sql".
Not a word. Not a hint.

Intead - you put the blame on triggers and called to avoid them.
Pretty stupid call.
Sorry.

I've seen .Net developers bringing dows 2 pretty powerful servers down by misusing remote calls in procedures.
And exausting server tresources by using front-end formatting in views.

What should we avoid here - remote calls, procedures, view?
Because we won't avoid stupidity and incompetence - it's ours everything!


Okay final comment on this matter. I hold my hand up and I should have mentioned that, where you can, try NOT to use CURSORS in TRIGGERS if you aren't aware of the consequences. I should have been clearer, I was not saying avoid triggers. That would be a daft call.

I'm big enough to handle criticism with grace and politeness, Sergiy I suggest you try the same. Thank you opc.three for the support.

Cheers

qh

Who looks outside, dreams; who looks inside, awakes. – Carl Jung.
Sergiy
Sergiy
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: General Forum Members
Points: 10338 Visits: 11961
quackhandle1975 (4/9/2013)
I should have been clearer, I was not saying avoid triggers.


Yes, this one looks very different. :-)
They say - consider environment. Look at the name of the article you're putting your comment to. Whatever you (me, whoever) put in here would be interpreted in this particular context.

That would be a daft call.


Agreed.
But this is exactly the call made in the article.
And seemingly promoted by opc.three to "best practices", if I understand him right.
Hm, daft...
Cool
Orlando Colamatteo
Orlando Colamatteo
SSChampion
SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)

Group: General Forum Members
Points: 14943 Visits: 14396
Sergiy (4/9/2013)
quackhandle1975 (4/9/2013)
I should have been clearer, I was not saying avoid triggers.


Yes, this one looks very different. :-)
They say - consider environment. Look at the name of the article you're putting your comment to. Whatever you (me, whoever) put in here would be interpreted in this particular context.

That would be a daft call.


Agreed.
But this is exactly the call made in the article.
And seemingly promoted by opc.three to "best practices", if I understand him right.
Hm, daft...
Cool

If I were you I would not bother trying to put words in others mouths. You obviously have enough trouble controlling the ones coming out of your own mouth.

__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search