Click here to Skip to main content
15,881,173 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please halp me to slove this problem

I tried : GRANT INSERT, UPDATE, SELECT ON [dbo].[User] TO 'IIS APPPOOL\.NET v4.5'

The SELECT permission was denied on the object 'User', database 'XXX', schema 'dbo'.
Posted
Comments
Sergey Alexandrovich Kryukov 7-Jan-15 11:58am    
A naive question: did you try to run Studio "As Administrator", with elevated permissions?
—SA

1 solution

Try this-

1. Login with the sa user (sysadmin)
2. In Object Explorer, expand Security and then Logins
3. Right click on the user from the list and click Properties
4. Click User Mapping and then click on (select) the Database from the list
5. Now you can see a list of Database role membership for : Your DB Name
6. Make sure that db_datareader is checked and db_denydatareader is unchecked
7. OK

Hope, It helps :)

Reference:
db_datareader[^]
db_denydatareader[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900