x
login about faq Site discussion (meta-askssc)

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 '10 at 05:11 PM in Default

Barbara Plume gravatar image

Barbara Plume
85 6 7 7

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

3 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 '10 at 05:37 PM

Kev Riley gravatar image

Kev Riley ♦♦
46k 38 43 69

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 '10 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 '10 at 05:41 PM

sp_lock gravatar image

sp_lock
8.1k 20 26 29

+1 still a valid answer though!

Feb 23 '10 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

By RSS:

Answers

Answers and Comments



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x1834
x145
x118
x90

asked: Feb 22 '10 at 05:11 PM

Seen: 1567 times

Last Updated: Feb 22 '10 at 05:28 PM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.