Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CREATE A DISABLED TRIGGER

Status
Not open for further replies.

fmsousa

IS-IT--Management
Nov 24, 2000
28
PT
Hi,

I would like to know how can i create a trigger disabled.
If i do like this:
CREATE TRIGGER xpto...

it stays enabled. there is any possibility of creating directly a trigger at disabled mode.

Thanks in advance!
 
You would think so wouldn't you. I had this same issue last week, unfortunately I had to wait until the database was not in use ( lucky it's not 24-7 ) before doing so. I think the problem is that on compilation it has to enable to check it's validation, however I could be wrong. SOL
I'm only guessing but my guess work generally works for me.
 
why do you want to create a trigger that is disabled. check it like a normal SP for business logic. then when you close down for maintenance you can create and disable it.
seriuous i don't understand the need for a disabled trigger
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top