x

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

Barbara Plume gravatar image

Barbara Plume
85 7 7 7

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

3 answers: sort newest

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

Kev Riley gravatar image

Kev Riley ♦♦
52.8k 47 49 76

I haven't done it, but I'm pretty sure if they have the permissions you outline, it should work. The reports work off the DMVs and those are the permissions needed, so...
Feb 23, 2010 at 10:17 AM Grant Fritchey ♦♦
(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

sp_lock gravatar image

sp_lock
9.1k 24 28 31

+1 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.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

SQL Server Central

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

Topics:

x1945
x161
x125
x94

asked: Feb 22, 2010 at 05:11 PM

Seen: 2521 times

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