The SELECT permission was denied on the object ‘extended_properties’, database ‘mssqlsystemresource’, schema ‘sys’.

Question: What I’m I doing wrong and I’m getting the following error message when trying to list my database’s tables? The SELECT permission was denied on the object ‘extended_properties’, database ‘mssqlsystemresource’, schema ‘sys’.”

Here’s the screenshot also:

The SELECT permission was denied on the object 'extended_properties', database 'mssqlsystemresource', schema 'sys'.

Answer: Are you ready for the simplest explanation ever? 🙂

The reason is that -most probably- (hey, you never know) you are using a SQL Server login that has conflicting permissions.

 

Learn more about “The SELECT permission was denied on the object ‘extended_properties’…” error message

The login you with which you are connected to the SQL Server instance, has the db_denydatareader database role assigned. This means, that whatever else database role the login has assigned to it, even db_owner, the db_denydatareader will be in conflict thus not allowing to access certain resources of the database.

 

How to resolve the “SELECT Permission…” issue

If it is OK with your security requirements, remove the db_denydatareader role from the login. After that, you will be able to access the mapped database (if course the rest of the required permissions are in place).

Similarly, have in mind that you get the same behavior if you have write access to the database but also have the db_denydatawriter database role assigned to the login.

In general, be careful with the database roles you assign to any login and avoid giving conflicting accesses.

 


Strengthen your SQL Server Administration Skills – Enroll to our Online Course!

Check our online course on Udemy titled “Essential SQL Server Administration Tips
(special limited-time discount included in link).

Via the course, you will learn essential hands-on SQL Server Administration tips on SQL Server maintenance, security, performance, integration, error handling and more. Many live demonstrations and downloadable resources included!

Essential SQL Server Administration Tips - Online Course with Live Demonstrations and Hands-on Guides
(Lifetime Access/ Live Demos / Downloadable Resources and more!)

Learn More


Featured Online Courses:

 

Read Also:

Feel free to check our other relevant articles on SQL Server troubleshooting:

 

Featured Database Productivity Tools

Snippets Generator: Create and modify T-SQL snippets for use in SQL Management Studio, fast, easy and efficiently.

Snippets Generator - SQL Snippets Creation Tool

Learn more

 

Dynamic SQL Generator: Convert static T-SQL code to dynamic and vice versa, easily and fast.

Dynamic SQL Generator: Easily convert static SQL Server T-SQL scripts to dynamic and vice versa.

Learn more

 

Check our online courses!

Check our eBooks!

Subscribe to our YouTube channel!

Subscribe to our newsletter and stay up to date!

 

Rate this article: 1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5.00 out of 5)

Loading...

Reference: SQLNetHub.com (https://www.sqlnethub.com)

© SQLNetHub