Sql-server – Permissions to see and script objects, but not alter them

ddlpermissionssql serversql-server-2012

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?

Best Answer

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

USE <database>;
GRANT VIEW DEFINITION TO <user>;