SQL Server 2005 - Trigger Loop?
问题 I am using triggers for the first time. If I update a field in a table by an update trigger on the same table, with this spark a loop? Does sql server guard against this recursive behavior? Thanks 回答1: This page (search for RECURSIVE_TRIGGERS ) describes some of the database settings you can use to modify this behavior. Also, one way to safeguard your procedures is to use either the UPDATE() function or the COLUMNS_UPDATED() function. If, for example, you have a table with columns A , B , and