SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


VIEW SERVER STATE Permissions


VIEW SERVER STATE Permissions

Author
Message
mnDBA
mnDBA
Mr or Mrs. 500
Mr or Mrs. 500 (506 reputation)Mr or Mrs. 500 (506 reputation)Mr or Mrs. 500 (506 reputation)Mr or Mrs. 500 (506 reputation)Mr or Mrs. 500 (506 reputation)Mr or Mrs. 500 (506 reputation)Mr or Mrs. 500 (506 reputation)Mr or Mrs. 500 (506 reputation)

Group: General Forum Members
Points: 506 Visits: 796
I can try and figure this out manually, but does anyone know on what DMVs VIEW SERVER STATE grants permissions?

I am in a position where I need to grant VIEW SERVER STATE permissions to some folks and then explicitly deny SELECT perms on the DMVs they do not need. So, the question becomes, what DMVs are granted SELECT when granted VIEW SERVER STATE.
george sibbald
george sibbald
SSC-Insane
SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)

Group: General Forum Members
Points: 24998 Visits: 13698
what you have described will work. see

http://msdn.microsoft.com/en-us/library/ms188754(v=SQL.100).aspx

---------------------------------------------------------------------
mnDBA
mnDBA
Mr or Mrs. 500
Mr or Mrs. 500 (506 reputation)Mr or Mrs. 500 (506 reputation)Mr or Mrs. 500 (506 reputation)Mr or Mrs. 500 (506 reputation)Mr or Mrs. 500 (506 reputation)Mr or Mrs. 500 (506 reputation)Mr or Mrs. 500 (506 reputation)Mr or Mrs. 500 (506 reputation)

Group: General Forum Members
Points: 506 Visits: 796
george sibbald (10/11/2010)
what you have described will work. see

http://msdn.microsoft.com/en-us/library/ms188754(v=SQL.100).aspx


I am confident it will work. I was just hoping there was a pre-existing list of what DMVs a user was granted perms too when given VIEW SERVER STATE. Then i can work backwards and make sure I DENY SELECT on the appropriate objects.

I want to avoid having to do this (determining the perm difference between VIEW SERVER STATE and not) manually if i can.
george sibbald
george sibbald
SSC-Insane
SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)

Group: General Forum Members
Points: 24998 Visits: 13698
The URL states that view server state AND select permission is required, so grant view server state and select only on the dmvs you want them to be able to use.

Is that what you require?

---------------------------------------------------------------------
Marios Philippopoulos
Marios Philippopoulos
SSChampion
SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)

Group: General Forum Members
Points: 12898 Visits: 3766
You may have already seen this link, but here it is; it describes an alternative way to what you are trying to do, and complications that come with it:

http://www.eggheadcafe.com/software/aspnet/30323724/how-can-i-see-what-permissions-view-server-state-has.aspx

__________________________________________________________________________________
SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables
Persisting SQL Server Index-Usage Statistics with MERGE
Turbocharge Your Database Maintenance With Service Broker: Part 2
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search