Re: Error Handling Coming Out of a Trigger
- From: "Brian Hollister" <bhollisterATfuturaintlDOTcom>
- Date: Fri, 22 Jun 2007 16:00:35 -0400
I like to keep the logic in the Dephi app when it is complicated. I havespreading
seen SQL Servers brought to their knees or cluged up unnecessarily
DB's across multiple servers because the logic in SP and Triggers wasoverly
complex.
I am moving the trigger's logic into the stored procedures. A discussion got
me no where, as far as getting the application to handle the logic.
The example you have right now with your "service lines" is a good one.....
There are multiple ways to handle it probably and changing approaches in
stored procedures is usually more difficult than changing program code.
IMHO.
It's definitely easier than doing it in the trigger where your limited to
only field values. At least with procs i have parameters too.
Can you give me a little more detail about service lines and discounts on
transactions?
Our transaction encompasses:
The Account the Service Lines were provided to
Insurance Policy Information
Incident Records
Special Forms attached, CMNS, Auth forms, and more...
The Service Line
Is a service/item provided to the account on the transaction
Contains Fees
Discount percentage
Taxable status
Service dates
HCPC, Modifiers, and other medical codes
Each service line:
May/May not be taxed
May/May not be discounted
May/May not have a different tax rate from the same tax schedule (Some
states have Use Tax and Medical Necessity Tax rates for
different items provided.)
Should always have a qty of one or more
Fees cannot be less than zero
Must have a starting service date
I see what you mean by the flexibility the front-end has. Your example
clearly points it out. But I'm bound by title to provide this functionality
in the stored procedure. They do not want to recompile the application to
make a change like this. If i can prove that performance is hindered than of
course we will seek out another avenue. Besides at this point, there is not
much mroe complexity than i have provided here.
THis really isnt rocket science you know ... :-)
Isn't it close sometimes....
Thanks,
--
Got a big event coming up? Let us
help coordinate your event. For more
visit www.kissemgoodbye.com
.
- Follow-Ups:
- Re: Error Handling Coming Out of a Trigger
- From: Del Murray
- 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
- Re: Error Handling Coming Out of a Trigger
- From: Del Murray
- Re: Error Handling Coming Out of a Trigger
- From: Brian Hollister
- Re: Error Handling Coming Out of a Trigger
- From: Del Murray
- Error Handling Coming Out of a Trigger
- Prev by Date: D7 ACCESS INTEGRITY REFERENTIAL
- 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
|