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.
| Author |
Topic |
|
ConfusedAgain
Yak Posting Veteran
82 Posts |
Posted - 2012-04-17 : 05:45:27
|
| I am trying to run a trigger when two fields in the inserted table match:Struggling at the moment I have something like this:IF EXISTS (SELECT * FROM inserted WHERE inserted.SelectedAnswer = inserted.CorrectAnswer )BEGINThen the trigger runs if that criteria is met.Many thanks |
|
|
ConfusedAgain
Yak Posting Veteran
82 Posts |
Posted - 2012-04-17 : 06:06:28
|
| Sorry ignore that:It does work it was that I forgot to type End at the end of the trigger when modifying. |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2012-04-17 : 13:26:30
|
| looks like a business logic validation to mewhy are doing this inside trigger?------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
|
|
|