Re: Show execution plan
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Wed, 09 Jan 2008 15:04:03 -0800
Nancy Lytle (word_diva@xxxxxxxxxxx) writes:
How do I grant a user the ability to see query execution plans, currently
the developer who wants the permission, has dataread permission on the
database in question but gets an error message when he tries to view an
execution plan, saying he doesn't have permissions.
I tried
GRANT VIEW DEFINITION ON SCHEMA::dbo TO [User] but that didn't work.
I don't know how often I see "gets an error message", but people never
include the error message. It is as if it was digital OK, or NOT OK.
But actually: error messages include information, and it can help to
read them. In this particular case, you I expect you got something like:
Msg 262, Level 14, State 4, Line 1
SHOWPLAN permission denied in database 'Northwind'.
From this one could guess that this helps:
GRANT SHOWPLAN TO developeruser
And indeed, it does.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- References:
- Show execution plan
- From: Nancy Lytle
- Show execution plan
- Prev by Date: Show execution plan
- Next by Date: Re: Allow a 'user' to create new users
- Previous by thread: Show execution plan
- Next by thread: Re: Allow a 'user' to create new users
- Index(es):
Relevant Pages
|
|