|
Hi, I need to create DDL triggers to prevent any user from creating procedures/functions in my database. But a trigger for 'CREATE_FUNCTION,CREATE_PROCEDURE' prevents the users from creating any replications also. The 'NOT FOR REPLICATION' clause is for DML triggers only, I guess. Can anyone suggest me a way to allow users to do replication things and disallow them to create any procedures/functions?
(comments are locked)
|


Can you please add details that how are they "CREATING REPLICATIONS"?
But does that matter in any way? They may create replications via the GUI or using scripts...
I cannot understand your question then. If I understand correctly, you want them to create replications. right? And AFAIK, there are already system procedures available through which the replication is done. So add the detail where it is getting wrong? Any specific error/s you are getting?
Does the users have db_owner rights (the minimum for various parts of replication) on the DB?
Yes, they have db_owner rights. The problem occurs when a user wants to create a new replication. As some system procedures are created during the process, it fails because users are not allowed to create procedures. So what I want is a way to block users from creating any new objects but they can create replications.