Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase «««34567

Are Triggers a "legacy" Feature? (Database Weekly, Nov 08 2008) Expand / Collapse
Author
Message
Posted Monday, April 8, 2013 4:41 AM
SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Monday, November 3, 2014 4:30 PM
Points: 4,574, Visits: 8,366
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.
Post #1439745
Posted Monday, April 8, 2013 5:10 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Thursday, November 20, 2014 4:37 AM
Points: 1,275, Visits: 932
Sergiy, you made my day lighter
Post #1439750
Posted Monday, April 8, 2013 7:19 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 4:42 AM
Points: 2,451, Visits: 1,038
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


SQL 2K acts like a spoilt child - you need to coax it round with lollipops.
Post #1439812
Posted Monday, April 8, 2013 4:05 PM
SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Monday, November 3, 2014 4:30 PM
Points: 4,574, Visits: 8,366
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!
Post #1440044
Posted Monday, April 8, 2013 10:39 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 1:58 PM
Points: 7,135, Visits: 12,748
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
Post #1440143
Posted Tuesday, April 9, 2013 5:13 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 4:42 AM
Points: 2,451, Visits: 1,038
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


SQL 2K acts like a spoilt child - you need to coax it round with lollipops.
Post #1440267
Posted Tuesday, April 9, 2013 3:55 PM
SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Monday, November 3, 2014 4:30 PM
Points: 4,574, Visits: 8,366
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...

Post #1440594
Posted Tuesday, April 9, 2013 4:01 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 1:58 PM
Points: 7,135, Visits: 12,748
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...


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
Post #1440595
« Prev Topic | Next Topic »

Add to briefcase «««34567

Permissions Expand / Collapse