Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

show grants on table/view for a given user

Posted on 2008-09-29
4
Medium Priority
?
3,765 Views
Last Modified: 2013-11-05
How to I show what grants have been given to a particular user for a particular table, procedure or view?
0
Comment
Question by:jmarkfoley
  • 2
  • 2
4 Comments
 
LVL 60

Expert Comment

by:chapmandew
ID: 22595579
2000 or 2005?
0
 
LVL 1

Author Comment

by:jmarkfoley
ID: 22595659
2005
0
 
LVL 60

Accepted Solution

by:
chapmandew earned 2000 total points
ID: 22595679
select objectname = object_name(major_id), * from sys.database_permissions d
join sys.database_principals ee on d.grantee_principal_id = ee.principal_id
join sys.database_principals oo on d.grantor_principal_id = oo.principal_id
0
 
LVL 1

Author Comment

by:jmarkfoley
ID: 22595891
Thanks! That gave me what I needed.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have a large data set and a SSIS package. How can I load this file in multi threading?
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question