I have one pesky ickle trigger which I have to delete before I run a few innoecent queries in a DTS job. Up till now, I have simply recreated the trigger in my script after the queries have been processed.
Now the problem is that this trigger gets changed from time to time and I have to change the create trigger script in my dts query every time. Unfortunately, people, being people, do sometimes neglect to tell me about trigger changes.
Yes, I've considered murder, but it's not really my style. What I'd like to do is take the human element out of the equation and have my job copy the trigger from another database (where it exists quite happily) OR perhaps have my DTS job somehow save the trigger before I drop it, and then be able to restore it after my other queries have run.
Clues anyone?
Now the problem is that this trigger gets changed from time to time and I have to change the create trigger script in my dts query every time. Unfortunately, people, being people, do sometimes neglect to tell me about trigger changes.
Yes, I've considered murder, but it's not really my style. What I'd like to do is take the human element out of the equation and have my job copy the trigger from another database (where it exists quite happily) OR perhaps have my DTS job somehow save the trigger before I drop it, and then be able to restore it after my other queries have run.
Clues anyone?