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 |
jodman
Starting Member
2 Posts |
Posted - 2010-06-25 : 11:33:03
|
Hi,I have an after trigger which runs when an update takes place against a table in my database.The trigger contains a section of code which is only executed when a specific column has been updated and that piece of code performs a further update on that columns; so for example:If update(column1)set column 1 = 'test'Is this kind of trigger, which would essentially lose the original updated value, supported in SQL server?Thanks. |
|
Sachin.Nand
2937 Posts |
Posted - 2010-06-25 : 13:28:15
|
It is called as recursive trigger.You can set it explicitly on with default being off.In off condition the trigger will fire once & then if SQL Server finds that it has recursively fired the same trigger it will perform one more update & stop.Limitations live only in our minds. But if we use our imaginations, our possibilities become limitless. PBUH |
 |
|
|
|
|