Solved

show grants on table/view for a given user

Posted on 2008-09-29
4
3,727 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 500 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

785 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