Solved

User cannot view all records in sys.server_principals

Posted on 2013-11-11
1
521 Views
Last Modified: 2013-11-12
I granted the user db_reader role for mater database and also view definitions but the user can only see 11 records out 1700. Which permissions should I grant so that he can have read only access to all the records in sys.server_principals and sys.sql_logins?
0
Comment
Question by:YZlat
1 Comment
 
LVL 69

Accepted Solution

by:
Scott Pletcher earned 250 total points
ID: 39640275
USE master

GRANT VIEW ANY DEFINITION TO [login_name]
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Server - Sum Decimal Columns 11 45
MS SQL Server Modify insert/update update to use MERGE 13 53
export sql results to csv 6 40
Linked Server Issue with SQL2012 3 28
Naughty Me. While I was changing the database name from DB1 to DB_PROD1 (yep it's not real database name ^v^), I changed the database name and notified my application fellows that I did it. They turn on the application, and everything is working. A …
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question