Weird to explain, but the reasons are critical.
Got a customer who have purchased a 3rd party piece of software that looks at a SQL server and retrieves values from a SQL statement.
The problem is however is that the SQL statement is wrong, and for reasons which I can't explain, the SQL statement will NEVER get changed as it's hardcoded into the program.
What I want to do however, is create some kind of trigger that runs a rule and if one condition is met, returns one value or another.
Let me explain a bit better.
Suppose the hard-coded SQL statement is this:
SELECT Price,VATCode FROM Products.
Simple enough, easy to understand.
However what I want to do is add 'something' on the SQL side of things that examines certain conditions BEFORE it returns Price and VATCode, and if a condition is met, changes the value of VATCode to something else.
I don't think I can create a "Select-Trigger" (only insert, update or delete), but was wondering if anyone knew of an alternate way of doing this.
Would really appreciate it if anyone had any thoughts.
Got a customer who have purchased a 3rd party piece of software that looks at a SQL server and retrieves values from a SQL statement.
The problem is however is that the SQL statement is wrong, and for reasons which I can't explain, the SQL statement will NEVER get changed as it's hardcoded into the program.
What I want to do however, is create some kind of trigger that runs a rule and if one condition is met, returns one value or another.
Let me explain a bit better.
Suppose the hard-coded SQL statement is this:
SELECT Price,VATCode FROM Products.
Simple enough, easy to understand.
However what I want to do is add 'something' on the SQL side of things that examines certain conditions BEFORE it returns Price and VATCode, and if a condition is met, changes the value of VATCode to something else.
I don't think I can create a "Select-Trigger" (only insert, update or delete), but was wondering if anyone knew of an alternate way of doing this.
Would really appreciate it if anyone had any thoughts.