Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
Article Discussions
»
Article Discussions by Author
»
Discuss Content Posted by Andy Warren
»
Trigger Trivia
26 posts, Page 1 of 3
1
2
3
»
»»
Trigger Trivia
Rate Topic
Display Mode
Topic Options
Author
Message
Andy Warren
Andy Warren
Posted Monday, November 12, 2007 9:38 PM
SSCertifiable
Group: Moderators
Last Login: Thursday, May 09, 2013 12:38 PM
Points: 6,462,
Visits: 1,384
Comments posted to this topic are about the item
Trigger Trivia
Andy
SQLShare - Learn One New Thing Each Day
SQLAndy - My Professional Blog
Connect with me on LinkedIn
Follow me on Twitter
Post #421316
Jeff Moden
Jeff Moden
Posted Tuesday, November 13, 2007 12:48 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Yesterday @ 9:57 PM
Points: 32,906,
Visits: 26,790
Good synopsis of uses, Andy!
--Jeff Moden
"
RBAR
is pronounced "ree-bar" and is a "Modenism" for "
R
ow-
B
y-
A
gonizing-
R
ow".
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #421374
varghese-471706
varghese-471706
Posted Tuesday, November 13, 2007 3:50 AM
Forum Newbie
Group: General Forum Members
Last Login: Tuesday, January 06, 2009 10:58 AM
Points: 1,
Visits: 5
Short but very informative. Thanks!
Post #421434
Gerhard Schmeusser
Gerhard Schmeusser
Posted Tuesday, November 13, 2007 4:46 AM
SSC Rookie
Group: General Forum Members
Last Login: Friday, September 07, 2012 12:30 PM
Points: 37,
Visits: 136
By chance the disable trigger hint came just when I needed it. Thanks for the nice synopsis you won't find somewhere else.
Post #421468
dragos_sv
dragos_sv
Posted Tuesday, November 13, 2007 5:16 AM
Right there with Babe
Group: General Forum Members
Last Login: Friday, May 03, 2013 4:27 AM
Points: 798,
Visits: 983
if you need all trigers disabled, you can specify 'all' instead of triggername. i found it useful
Post #421487
John Mitchell-245523
John Mitchell-245523
Posted Tuesday, November 13, 2007 5:16 AM
SSCarpal Tunnel
Group: General Forum Members
Last Login: Today @ 6:55 AM
Points: 4,427,
Visits: 7,194
Great article, Andy - thanks. Can I just ask a question about Tip#4?
If you want to really make sure no resultsets occur you can use spconfigure to set disallow results from triggers to off.
Is this a typo and did you mean to say "on"? Also, if you do this, you'll get an error message every time a trigger tries to return a result set and so you'd need to add some error-handling code to your trigger and/or application.
John
Post #421488
Andy Warren
Andy Warren
Posted Tuesday, November 13, 2007 5:38 AM
SSCertifiable
Group: Moderators
Last Login: Thursday, May 09, 2013 12:38 PM
Points: 6,462,
Visits: 1,384
John, you're right, it should be ON. Calling it a typo is generous!
Andy
SQLShare - Learn One New Thing Each Day
SQLAndy - My Professional Blog
Connect with me on LinkedIn
Follow me on Twitter
Post #421507
Andy Warren
Andy Warren
Posted Tuesday, November 13, 2007 5:39 AM
SSCertifiable
Group: Moderators
Last Login: Thursday, May 09, 2013 12:38 PM
Points: 6,462,
Visits: 1,384
Dragos, I don't think I knew that about ALL, thats a nice shortcut.
Andy
SQLShare - Learn One New Thing Each Day
SQLAndy - My Professional Blog
Connect with me on LinkedIn
Follow me on Twitter
Post #421509
usarian
usarian
Posted Tuesday, November 13, 2007 6:24 AM
Forum Newbie
Group: General Forum Members
Last Login: Friday, September 17, 2010 7:46 AM
Points: 4,
Visits: 32
Wow!
The tip about DDL and CLR triggers was great!
It's too bad we don't see more articles like this!
Short, Sweet, and useful!
Post #421535
dragos_sv
dragos_sv
Posted Tuesday, November 13, 2007 6:43 AM
Right there with Babe
Group: General Forum Members
Last Login: Friday, May 03, 2013 4:27 AM
Points: 798,
Visits: 983
Andy, that's the one i used most times... if not always. glad if it helps
Post #421546
« Prev Topic
|
Next Topic »
26 posts, Page 1 of 3
1
2
3
»
»»
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.