Re: Error Handling Coming Out of a Trigger
- From: "Del Murray" <Del.Murray@xxxxxxxxxxxxxx>
- Date: Thu, 21 Jun 2007 20:50:58 -0500
Brian,
It sounds like you are doing a GL or full accounting system. My experience
is that when you put those rules in the DB, the user usually has a
continuous stream of "new" rules that either they didnt describe in the
beginning or that arise as business changes. What usually happens is that
the triggers get so convoluted that they become unmaintainable , escpecially
if you have 3 or 4 programmers working on them over a period of a few years.
I would put the logic in the stored proc that you are calling to actually
update the data (the one firing the trigger). Triggers IMHO are for actions,
not edits. I acutally prefer to put the logic in the program and then they
can **never** come up with something that I cant handle in a straight
forward manner.
I think you are on the right track for the long hall.
Del
.
- Follow-Ups:
- Re: Error Handling Coming Out of a Trigger
- From: Brian Hollister
- Re: Error Handling Coming Out of a Trigger
- References:
- Error Handling Coming Out of a Trigger
- From: Brian Hollister
- Re: Error Handling Coming Out of a Trigger
- From: Brian Bushay TeamB
- Re: Error Handling Coming Out of a Trigger
- From: Brian Hollister
- Error Handling Coming Out of a Trigger
- Prev by Date: Re: Error Handling Coming Out of a Trigger
- Next by Date: Re: Error Handling Coming Out of a Trigger
- Previous by thread: Re: Error Handling Coming Out of a Trigger
- Next by thread: Re: Error Handling Coming Out of a Trigger
- Index(es):
Relevant Pages
|