Is there a way to get read only access to sql - so that you can see everything that a sysadmin would have ?

Greg Booth 1,316 Reputation points
2022-02-15T12:29:04.393+00:00

We are looking to take over support of some sql instances.
Ideally we would like systadmin access in advance so that we can check the setup.
For now the current dba's only want to give us read only access - not sure how they are going to do this.
Is there a way that we can have read only access, but still see everything that a sysadmin access can see (in SSMS) ? i.e. everything.
I cannot think of a way without a lot of bespoke work to grant read only access to all system views

Thanks

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,638 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Erland Sommarskog 109.8K Reputation points MVP
    2022-02-15T23:13:55.03+00:00

    There are a bunch of VIEW permissions you can ask for. VIEW SERVER STATE, VIEW ANY DEFINITION and a few more. That should take you a long way.

    But there are probably a few things you only can access if you are in sysadmin.

    0 comments No comments

  2. YufeiShao-msft 7,116 Reputation points
    2022-02-16T07:28:28.697+00:00

    Hi @Greg Booth ,

    SELECT ALL USERS SECURABLES  
    

    maybe this permission seems to fit your requirement as well, it is designed to allow a user to view data in all databases he can connect, and the same time, does not grant any permission in any database beyond connent

    https://blog.dbi-services.com/sql-server-2014-select-all-users-securables-a-db-admins/


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.