Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 155451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:09:29+00:00 2026-05-11T10:09:29+00:00

I need a query to display information about the users, roles and privileges within

  • 0

I need a query to display information about the users, roles and privileges within an SQLServer 2000 and SQLServer 2005 database?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T10:09:30+00:00Added an answer on May 11, 2026 at 10:09 am

    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:

    How do I find all the owners of entities contained in a specified schema? [Before you run the following query, replace <database_name> and <schema_name> with valid names].

    USE <database_name>; GO SELECT 'OBJECT' AS entity_type     ,USER_NAME(OBJECTPROPERTY(object_id, 'OwnerId')) AS owner_name     ,name  FROM sys.objects WHERE SCHEMA_NAME(schema_id) = '<schema_name>' UNION  SELECT 'TYPE' AS entity_type     ,USER_NAME(TYPEPROPERTY(SCHEMA_NAME(schema_id) + '.' + name, 'OwnerId')) AS owner_name     ,name  FROM sys.types WHERE SCHEMA_NAME(schema_id) = '<schema_name>'  UNION SELECT 'XML SCHEMA COLLECTION' AS entity_type      ,COALESCE(USER_NAME(xsc.principal_id),USER_NAME(s.principal_id)) AS owner_name     ,xsc.name  FROM sys.xml_schema_collections AS xsc JOIN sys.schemas AS s     ON s.schema_id = xsc.schema_id WHERE s.name = '<schema_name>'; GO 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose a query select * from employee returns 80 rows. I need to display
I need to query a database which is designed so what a NVARCHAR column
I need to query the database to get the column names , not to
I need to query AD to determine if a users account is disabled. Using
I need to find and display the number of rows returned by the query.
I need some information about localization. I am using .net 2.0 with C# 2.0
I have big database full of information and I use the following Query to
I have a database table with 6 fields that holds information about restaurants: id
Need to query my SQL server from Access using an ADO connection (for example),
I need to query for a list of available Wireless Access points. I only

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.