CREATE and INSERT permissions to User_X on DB_Z without DROP or DELETE

  • [grant CREATE and INSERT permissions to User_X on all tables in DB_Z

    BUT

    Avoid granting DROP or DELETE permissions].

    Encountered this unusual task today. Other than DDL trigger, what else?...

    if DDL trigger is the only solution, what will it look like exactly?

    Likes to play Chess

  • For DELETE, a DENY DELETE should work.

    For DROP, if the user created the table, they likely own it, so you'd have to use a DDL trigger for that AFAIK.

    SQL DBA,SQL Server MVP(07, 08, 09) A socialist is someone who will give you the shirt off *someone else's* back.

  • This was removed by the editor as SPAM

  • This was removed by the editor as SPAM

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply