Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

How to summarize the security settings for an account.?????? Expand / Collapse
Posted Tuesday, February 19, 2013 8:35 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, June 5, 2013 8:47 AM
Points: 9, Visits: 44

I have 2 sql Login accounts and for these 2 accounts

How to find out the
1. Server Roles (bulkadmin, dbcreator,diskadmin etc.,).????
2. user mapped databases.????
3. database roles.????
4. database role and user database is 1-to-1 mapping or not.????

Ex: TestDB ---> mapped to ---> db_datareader
SampleDB ---> mapped to ---> db_ddladmin
5. Deny access on Tables.????

Please advice me any script or any solution.


Post #1421680
Posted Tuesday, February 19, 2013 8:40 AM



Group: General Forum Members
Last Login: Thursday, September 1, 2016 2:56 AM
Points: 5,969, Visits: 6,067
Select from sys.server_permission for server wide permissions (grant deny roles etc) joined to sys.server_principles

Select from sys.database_permissions in each database for DB wide permissions joined to sys.database_principles

Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
When a question, really isn't a question - Jeff Smith
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1 & Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger

Post #1421683
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse