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 517501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:50:26+00:00 2026-05-13T07:50:26+00:00

I have an old database that I am inheriting. The access rights are not

  • 0

I have an old database that I am inheriting. The access rights are not clearly defined anywhere and I’m looking for a quick way to get them for everyone. Let’s say I have a user in my database that does not belong to any membership roles. However, they have been given access to do specific things to specific tables. For example, they can run select queries on table X and run update queries on table Y. I know I can find out what they have by going to the properties for each user. I would imagine, however, that there has to be a system table somewhere that has all of this defined in it and makes it easily queryable. What would this query look like.

FYI: I am working with SQL Server 2005

Update: Is there also a way to do this for all databases on the server?

  • 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. Editorial Team
    Editorial Team
    2026-05-13T07:50:26+00:00Added an answer on May 13, 2026 at 7:50 am

    Take a look at the Security Catalog Views, then check out MrDenny’s answer here which gives a query to list a user’s rights. I reproduce it here (tidied up to my liking)..

    SELECT  [Schema]            =   sys.schemas.name 
    ,       [Object]            =   sys.objects.name 
    ,       username            =   sys.database_principals.name 
    ,       permissions_type    =   sys.database_permissions.type 
    ,       permission_name     =   sys.database_permissions.permission_name
    ,       permission_state    =   sys.database_permissions.state 
    ,       state_desc          =   sys.database_permissions.state_desc
    ,       permissionsql       =   state_desc + ' ' + permission_name 
                                     + ' on ['+ sys.schemas.name + '].[' + sys.objects.name 
                                     + '] to [' + sys.database_principals.name + ']' 
                                      COLLATE LATIN1_General_CI_AS 
    FROM sys.database_permissions 
     INNER JOIN sys.objects ON sys.database_permissions.major_id =      sys.objects.object_id 
     INNER JOIN sys.schemas ON sys.objects.schema_id = sys.schemas.schema_id 
     INNER JOIN sys.database_principals ON sys.database_permissions.grantee_principal_id =  sys.database_principals.principal_id 
    ORDER BY 1, 2, 3, 5
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an old SQL Server 2000 database that I want to get into
I have an old Access database that is being upgraded to work with Access
I have a number of exported text fields from an old access database that
I have an old Access database that is basically one flat file. I want
We have an old Access 2000 database that we need to pull data from
I have inherited a old access database that includes a table with data organised
I have a database with a lot of old phpBB data that contains posts
I have a database with a lot of old phpBB data that contains posts
I have only ever dealt with database querys before in the old fashion that
I have an old database of users which contains passwords hashed in a way

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.