in SQL 2005 what is the least privilege that allows a user to run Mgt. Studio database Standard database Reports?

We have a user who wants to run Standard Reports, i.e. the Disk Usage report, on his databases. We want to avoid giving the user the sysadmin role, if at all possible. Is there a specific permission or permissions that we can give that would enable him to run various reports? I might add that his databases are in their own separate instance. Thank you.

Barbara Plume

more ▼

asked Feb 22, 2010 at 05:11 PM in Default

avatar image

Barbara Plume
85 7 7 9

(comments are locked)
10|1200 characters needed characters left

2 answers: sort voted first

Trying to find a definitive answer on this one is proving difficult, however most of the standard reports use DMVs, and according to BOL:

To query a dynamic management view or function requires SELECT permission on object and VIEW SERVER STATE or VIEW DATABASE STATE permission

more ▼

answered Feb 22, 2010 at 05:37 PM

avatar image

Kev Riley ♦♦
66.8k 48 65 81

(comments are locked)
10|1200 characters needed characters left

Initially I would try allowing the user to the dmv's.

VIEW SERVER state and VIEW DATABASE STATE.... DOH i got the "reload answers".. +1 Kev.

To tie them down you can then deny SELECT on the dmv's you dont what the user to access...

more ▼

answered Feb 22, 2010 at 05:41 PM

avatar image

10.9k 27 37 37

  • still a valid answer though!

Feb 23, 2010 at 06:54 AM Kev Riley ♦♦
(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.



asked: Feb 22, 2010 at 05:11 PM

Seen: 3112 times

Last Updated: Feb 22, 2010 at 05:28 PM

Copyright 2018 Redgate Software. Privacy Policy