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 |
sako
Starting Member
43 Posts |
Posted - 2006-01-13 : 13:06:31
|
Can i throw an execption while executing a trigger programmatically?Thanks |
|
TG
Master Smack Fu Yak Hacker
6065 Posts |
Posted - 2006-01-13 : 13:23:40
|
You can call RAISERROR from within a trigger if that's what you mean. if you want the transaction to rollback you'll have to also issue a ROLLBACK statement.Be One with the OptimizerTG |
|
|
derrickleggett
Pointy Haired Yak DBA
4184 Posts |
Posted - 2006-01-15 : 00:25:38
|
What do you mean "executing a trigger programmatically"? You can't technically "execute" a trigger programmatically.MeanOldDBAderrickleggett@hotmail.comWhen life gives you a lemon, fire the DBA. |
|
|
|
|
|