HiveBrain v1.2.0
Get Started
← Back to all entries
patternsqlModerate

Permissions to see and script objects, but not alter them?

Submitted by: @import:stackexchange-dba··
0
Viewed 0 times
scriptpermissionsobjectsbutseealterthemandnot

Problem

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?

Solution

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

USE ;
GRANT VIEW DEFINITION TO ;

Code Snippets

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

Context

StackExchange Database Administrators Q#65399, answer score: 12

Revisions (0)

No revisions yet.