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

Allowing non-sysadmin users to see SQL Server execution plans

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

Problem

Is this possible ? On SQL Server 2012+, grant access to a non sysadmin user to see the execution plans ? And can this be done for selected databases only ?

Solution

Community Wiki answer generated from question comments

Yes this is possible. See:

  • Syntax for Granting, Denying, and Revoking the SHOWPLAN Permission1 2



  • Showplan Security2



  • SHOWPLAN Permission and Transact-SQL Batches2



1 Contributed by Mark Sinkinson

2 Contributed by Aaron Bertrand♦

Context

StackExchange Database Administrators Q#114786, answer score: 9

Revisions (0)

No revisions yet.