Solved

sp_helprotect sp_helpuser WHERE

Posted on 2008-10-17
1
691 Views
Last Modified: 2008-11-12
We have a database.  The users don't have direct access to any of the tables of data.  There are views, functions and procedures with permissions granted to groups, and groups are granted to logins.  

We want to select what views, functions and procedures a user has access to by linking

logins = groups = objects
0
Comment
Question by:bmiller250
[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
1 Comment
 
LVL 27

Accepted Solution

by:
Zberteoc earned 500 total points
ID: 22752319
What you have in SQL server are roles and users are asociated to a role and the roles are granted or denied permissions. Run the sp_helpprotect stored procedures with no parameters and will list all the permissions for all the roles on current database:
EXEC sp_helprotect

Open in new window

0

Featured Post

Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

Question has a verified solution.

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

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

732 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