Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB SQL » View Thread |
Messages 1 to 5 of 5 total |
Triggers |
Thu, Oct 15 2009 11:00 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | I'm about to add a trigger to format phone numbers in several tables. I already have after insert & after update triggers on some tables which are called when any changes are made for auditlog purposes.
The question is wether it would be better to place the code in the existing trigger or have a series of new triggers that only respond to changes to the specific fields involved? Roy Lambert ps Tim any news on being able to fully specify the location of external modules? |
Thu, Oct 15 2009 11:10 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | A quick experiment provided part of the answer I need a before update trigger, so what's your views. One trigger to handle many columns and sorting it out inside or one trigger per column?
Roy Lambert |
Thu, Oct 15 2009 2:02 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Roy,
<< ps Tim any news on being able to fully specify the location of external modules? >> Not yet, still on the list. -- Tim Young Elevate Software www.elevatesoft.com |
Thu, Oct 15 2009 2:03 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Roy,
<< The question is wether it would be better to place the code in the existing trigger or have a series of new triggers that only respond to changes to the specific fields involved? >> It's strictly up to you. There's no difference as far as EDB is concerned. -- Tim Young Elevate Software www.elevatesoft.com |
Thu, Oct 15 2009 2:05 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Roy,
<< A quick experiment provided part of the answer I need a before update trigger, so what's your views. One trigger to handle many columns and sorting it out inside or one trigger per column? >> Again, it doesn't really matter that much. The only difference is letting EDB do the column matching, vs. you trying to figure out which columns have changed. EDB already tracks this information (column modifications), so it can determine it very quickly. -- Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Sunday, May 5, 2024 at 10:18 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |