Languages SQL Triggers  

Disable a trigger for a specific user

download download  
important code information
author:
Andy Archer
minimum requirements:
Disable a trigger for a specific user description

Okay, okay... "disable" is too strong a word. The trigger still fires, but it just doesn't do anything. Via the USER built-in PL/SQL function, you can easily bypass trigger activity for a user. This example shows how.


File List:
disable_a_trigger_for_a_specific_user.sql2Kb

Similar code
Dynamic trigger (Popularity: ) : Write business rules using conditions (T-SQL), message texts (plain text) and actions (T-SQL) and store them in a database table. These rules will be automatically called by a general purpose trigger generated dynamically by the Software.
Build "selective firing" into your database triggers (Popularity: ) : PL/SQL example with narrative that illustrates how to build "selective firing" into database triggers via an outermost, enclosing conditional that evaluates user ID.
User reviews

Write a review:
1 2 3 4 5 6 7 8 9 10
1=poor 10=excellent
Write review*
Your name*
Email*
  (Comments are moderated, and will not appear on this site until the editor has approved them)
 
Rate me
supported os
stats
downloads 10
version
size in Kb 1
popularity   752/7913374
user rating 4/10
ad


New Code
Popular Code