Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Prevent DDL Triggers from disabling Expand / Collapse
Author
Message
Posted Thursday, April 4, 2013 6:33 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, February 6, 2014 7:15 AM
Points: 7, Visits: 13
Hi friends ,


Here i am having SQL Server 2008 R2 Standard Edition . To Control the Schema level Changes, i have created a DDL Trigger, which is just Roll back the DDL Changes if they accrued from the users except sa .

in SSMS by right click the user can Disable that Database Triggers . i dont know how to prevent this DDL trigger.

Pls help me to resolve this .

Thanks

Vivek Kannan
Post #1438749
Posted Thursday, April 4, 2013 6:53 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 2:39 PM
Points: 12,923, Visits: 32,313
only a sysadmin can disable the triggers, so as long as only you have sysadmin permissions, it's not a problem.

if other people have sysadmin,and you want to prevent them from disabling the trigger, you can't, unless you take away their sysadmin privileges.


Lowell

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #1438761
Posted Thursday, April 4, 2013 7:06 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 1:43 PM
Points: 40,411, Visits: 36,861
And if they have sysadmin permissions, you have larger problems than a DDL trigger, they could drop the database, shut down SQL, steal a backup, change data, etc.

Minimal permissions!



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1438777
Posted Thursday, April 4, 2013 7:08 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, February 6, 2014 7:15 AM
Points: 7, Visits: 13
thx Lowell

yes u r correct, users have Sysadmin permission .

Is there any way to Audit the Changes (delete , disable) on DDL Triggers .

The sys.triggers table has the flag value "is_disabled" .

monitoring this flag value changes will help to resolve this ?

Regards

Vivek Kannan
Post #1438778
Posted Thursday, April 4, 2013 7:16 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 2:39 PM
Points: 12,923, Visits: 32,313
vivekkannan.k (4/4/2013)
thx Lowell
yes u r correct, users have Sysadmin permission .
Is there any way to Audit the Changes (delete , disable) on DDL Triggers .
The sys.triggers table has the flag value "is_disabled" .
monitoring this flag value changes will help to resolve this ?
Regards
Vivek Kannan


I'll say it again, but I have the feeling you are afraid to make the change.
take away sysadmin permissions.
Minimum permissions is what they should have.
do it now.
add the logins as users to each of the databases they really need access to; and use an existing role create a new role that has the actual permissions they need in that database.

after that, there's no need to monitor anything, because noone can do anything behind your back; if they need to create something, then they can contact you, and you can review the item, suggest proper changes, or create it on their behalf.


Lowell

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #1438783
Posted Thursday, April 4, 2013 7:24 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, February 6, 2014 7:15 AM
Points: 7, Visits: 13
Sure Lowell ,

its a live server . better i implement this on my development server first and then replicate the same on live .

will ping you if i experience any difficulty.

thanks for your help.


Regards

Vivek Kannan
Post #1438792
Posted Thursday, April 4, 2013 7:27 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 2:39 PM
Points: 12,923, Visits: 32,313
holy crap! you have people with sysadmin permissions, on the Live server, Klutzing around and making DDL changes at will?

time to update your resume, it's only a matter of time before they do something that will cost you your job or worse, get you some jailtime.


Lowell

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #1438794
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse