Re: What commands can a user execute
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Sat, 09 Aug 2008 05:15:34 -0700
Cqlboy (Cqlboy@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
Thanks. This is helpful - but I'm still missing something. When
executing the query - yes, I'm aware of it - either at the Server or
Database scope, no where do I find the permission for DROP TABLE or DROP
DATABASE but I do find CREATE TABLE and CREATE DATABASE. Another
example would be the command UPDATE STATISTICS. BOL states you need
ALTER permissions on the table or view. OK, understood. So, how do I
query the system to tell me all the commands a specific user can execute
without referencing BOL for every command ? Incidently, this is a
question my manager asked and auditors are expected to ask the same. I
thought it would be fairly easy to compile a full list of SQL commands
that a user can execute but, so far, it has not. Any help would be
appreciated. Thanks again. -CqlBoy
What you can see are the permissions, and then you are supposed to know
what the permissions entitles you to.
Given the large number of commands, I can agree that it would be nice if
you could retrieve this with a query from SQL Server rather than Books
Online. If would be fairly simple to provide a view that answers
"what permission do I need for TRUNCATE TABLE", as the view could have
two columns: the command and an explaining text. To show it the other way
around, and that is really what you are asking for, would take more effort
I guess.
Anyway, http://connect.microsoft.com/SqlServer/Feedback is the place
for good ideas like this.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- Follow-Ups:
- Re: What commands can a user execute
- From: Cqlboy
- Re: What commands can a user execute
- References:
- What commands can a user execute
- From: Cqlboy
- Re: What commands can a user execute
- From: Erland Sommarskog
- Re: What commands can a user execute
- From: Cqlboy
- What commands can a user execute
- Prev by Date: RE: What commands can a user execute
- Next by Date: Jobs, Interview Questions, Certification, Knowledge
- Previous by thread: Re: What commands can a user execute
- Next by thread: Re: What commands can a user execute
- Index(es):
Relevant Pages
|