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

trigger security Expand / Collapse
Author
Message
Posted Tuesday, April 30, 2013 9:20 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Thursday, January 9, 2014 7:44 AM
Points: 988, Visits: 2,945
I have a group of users with ddl_admin previalges on databases which i want to continue but how can i preven them from making changes to a particualr trigger on that database?
Post #1448106
Posted Tuesday, April 30, 2013 1:56 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 2:02 PM
Points: 7,081, Visits: 12,574
You can DENY ALTER on the table but in addition to preventing changes to the triggers on that table it also prevent them from adding columns to the table, modifying any constraints, enabling/disabling triggers, etc.

USE YourDatabaseName;
GO
DENY ALTER ON dbo.YourTableName TO TheDatabaseUserName;



__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Post #1448226
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse