April 4, 2013 at 6:33 am
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
April 4, 2013 at 6:53 am
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
April 4, 2013 at 7:06 am
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, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
April 4, 2013 at 7:08 am
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
April 4, 2013 at 7:16 am
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
April 4, 2013 at 7:24 am
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
April 4, 2013 at 7:27 am
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
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply