Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 General Advice for Math Functions

Author  Topic 

sinjin67
Yak Posting Veteran

53 Posts

Posted - 2009-10-05 : 14:52:29
I am wondering the best course for this. If I should
use a Trigger or SP to perform some math function.
My example would be I have a base total for a sale, say
$100.00. Now an option has been selected to add a 10%
discount to this because a condition exist for 2 years
support. Would it be best to use trigger to perform this ?

If anyone has any links for example I can learn from
that would apply that would be great. I am not asking
for anyone to do the work, just point me in the right
direction. I will be more then happy to do my own homework.

Thanx..

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-10-05 : 20:29:06
I definitely wouldn't use a trigger for this.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -