I need a query to display information about the users, roles and privileges within an SQLServer 2000 and SQLServer 2005 database?
I need a query to display information about the users, roles and privileges within
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The logins are here:
SQL Server 2000: select * from master.dbo.syslogins
SQL Server 2005: select * from master.sys.logins
Users (per current database):
SQL Server 2000: select * from dbo.sysusers
SQL Server 2005: select * from sys.users
From Books Online: