Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does SHOWPLAN permission allow users to view plans by other users?

As the title says, I am trying to figure out if the SHOWPLAN database level permission will grant an user permission to view plans and queries by other users in the database?

I am little confused from what I have read in the Microsoft documentation. Would appreciate any insight on this

Thanks in advance

like image 504
meNoob Avatar asked Dec 06 '25 03:12

meNoob


1 Answers

The SHOWPLAN permission enables a user to view the execution plan for their own queries.

To view plans and queries from other users (IE view the plan cache via sys.dm_exec_cached_plans) they will need VIEW SERVER STATE permission which is a different permission entirely

MS Documentation

like image 75
SEarle1986 Avatar answered Dec 08 '25 17:12

SEarle1986



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!