I have an audit trigger that automatically sets the time when something was updated, and the user updated in the fields in all of my tables. I have another set of triggers that write information about events from updates to the event table. The problem is that someone is updating something, event information is triggered twice because of the first triggers. How to suppress duplicate entries?
Take a look at the function TRIGGER_NESTLEVEL. It returns the current trigger nesting level. You can check this to prevent duplicates.
I think you have 2 options:
Combine both sets of triggers into one.
, .
, ( - ). (Sql 2005), sp_configure, . , .
exec sp_configure " ", 0
SS2005, SS Mgt Studio , , "". "" " " "".
Source: https://habr.com/ru/post/1699391/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1699386/repository-of-code-snippets&usg=ALkJrhiHTCWhG0aUHxfGYKPB7_5hu4nszQWindows Workflow Foundation Exceptions and Retries? - exceptionWhat is a somewhat secure way to generate a 64-bit signature? - language-agnosticHow do you check for ajax updates using a WebBrowser control in .net 2.0? - c #ASP Ajax Calendar Extender and Time Display - ajaxXmlNode not supported in Silverlight: reimplement or use string parsing? - xmlYou cannot use a local variable before it is declared by ASP.NET. - c #Using dlsym and adding -ldl to flags - cHow to set a session variable when a user is automatically logged in through forms authentication? - asp.netUsing shoe upload () for basic HTTP authentication - ruby | fooobar.comAll Articles