9

I am a software developer.

I have a production database that I need full ddl read access to, but not any ddl write or execute access.

Is there a script I can send my DBA that will grant me full ddl read access without allowing me to affect the database?

10

You will need VIEW DEFINITION on the database and that will give you access to the DDL.

USE <database>;
GRANT VIEW DEFINITION TO <user>;
1
  • Hi. A bit late to the party, but is there an easy way to view who have gotten this permission set?
    – GHauan
    Sep 27 '16 at 11:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.