Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Script to know users and their privileges

Author  Topic 

silpa
Starting Member

5 Posts

Posted - 2015-04-10 : 11:12:35
hi all can anyone tell me ,is there any script to know users and their database roles privileges and server roles of particular database

James K
Master Smack Fu Yak Hacker

3873 Posts

Posted - 2015-04-10 : 11:35:35
Take a look at the script here: http://stackoverflow.com/questions/7048839/sql-server-query-to-find-all-permissions-access-for-all-users-in-a-database I have used it with some success in the past, but that was a while ago, so the details or gotchas if any are murky in my mind.
Go to Top of Page
   

- Advertisement -