Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

show grants on table/view for a given user

Posted on 2008-09-29
4
Medium Priority
?
3,762 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

688 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