RE: How can I audit when a Trigger is disabled???

From: Mark Allison (marka_at_no.tinned.meat.mvps.org)
Date: 05/12/05


Date: Thu, 12 May 2005 09:00:12 -0700

Todd,

Can you lock down the database a bit more? ALTER TRIGGER requires ddl_admin
or db_owner privileges. Don't give users this level of access and they won't
be able to disable the trigger, just give them the minimum rights to do what
they need to do.

SQL Server 2005 has DDL triggers, but there's nothing in SQL Server 2000
that will allow auditing of this. I'm not actually sure if SQL Server 2005
can do it either.

-- 
Mark Allison, SQL Server MVP
http://www.markallison.co.uk
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602m.html 
"MCSA_Todd" wrote:
> We are running SQL Server 2000 and are having a problem with database data 
> being changed.  We have a trigger which logs when changes are made and what 
> the old and new data is.  I really need to know if or when someone is 
> disabling that trigger and changing data.  It is possible that the trigger is 
> being disabled and then the data is being changed and I would like that even 
> logged and then an operator notified by email.
> 
> Any ideas?
> 
> Thanks!
> 
> Todd


Relevant Pages

  • Re: How to limited number of rows in a table?
    ... If this is a log table, database blocking should ... Pro SQL Server 2000 Database Design ... > I'll bend on the trigger, but I think a nightly job may be too infrequent ...
    (microsoft.public.sqlserver.programming)
  • Re: Trigger: To fill another Database with using Stored Procedures of the other Database
    ... I fill from Database A with triggers Database B, ... add additional information accordingly, this Stored Procedures is ... trigger does not work anymore, even if I do a try catch over the whole ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ...
    (comp.databases.ms-sqlserver)
  • Re: How do I create a trigger in a stored procedure?
    ... DISABLE TRIGGER LanguageValuesTrigger ON DATABASE ... SQL Server let's go away with it. ...
    (microsoft.public.sqlserver.programming)
  • Re: Need help!!!
    ... I have create a trigger T1 for the table TAB1 in the schema A in the ... TAB2 in the schema B in the database D2. ... Hence I disable the trigger at the remote database and tried to ... This disabling and enabling should occur only when it is coming from ...
    (comp.databases.oracle.server)
  • Need help!!!
    ... I have create a trigger T1 for the table TAB1 in the schema A in the ... TAB2 in the schema B in the database D2. ... This setup was done inorder to update any transaction that happens ... This disabling and enabling should occur only when it is coming from ...
    (comp.databases.oracle.server)