question

kautuk avatar image
kautuk asked

Exempting replication procedures from DDL triggers

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?
triggersddl
8 comments
10 |1200 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Can you please add details that how are they "CREATING REPLICATIONS"?
0 Likes 0 ·
But does that matter in any way? They may create replications via the GUI or using scripts...
0 Likes 0 ·
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?
0 Likes 0 ·
Does the users have db_owner rights (the minimum for various parts of replication) on the DB?
0 Likes 0 ·
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.
0 Likes 0 ·
Show more comments

0 Answers

· Write an Answer

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.