Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 3rd, 2004, 07:29 AM
Registered User
 
Join Date: Apr 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default by passing trigger

Does anyone know how to bypass a trigger on a table without disabling the trigger altogether..

I have created an update trigger on a table, and i have also written a procedure to do a bulk update on the same table, but unfortunately, i can't run the procedure, because the update trigger fires and stop me from progressing further..

is there a way for me to by pass the trigger, without disabling and enabling it altogether..

thanks

 
Old July 3rd, 2004, 04:46 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

disable triger before execute Procedure and enable after by using
Alter Table TableName Enable|Disable Trigger TrigerName

Ahmed Ali
Software Developer
 
Old July 4th, 2004, 05:30 AM
Registered User
 
Join Date: Apr 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks..







Similar Threads
Thread Thread Starter Forum Replies Last Post
Trigger sumith ASP.NET 1.0 and 1.1 Professional 0 March 21st, 2007 12:44 AM
Trigger fhillipo SQL Server 2000 1 March 20th, 2007 07:44 AM
Trigger arshad mahmood SQL Language 2 May 12th, 2004 05:16 AM
trigger khautinh SQL Server 2000 5 October 16th, 2003 11:33 AM
Trigger khautinh SQL Server 2000 4 September 12th, 2003 11:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.