Click here to Skip to main content
15,882,209 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hi every one i have search a lot for this error
"SELECT permission denied on object 'tablename', database 'db1', schema 'dbo"
but m not getting exact answer, m not able to understand the where the problem lies exactly, why its shows this error and what is solution for that...
Plz help/reply me....
Posted
Updated 25-Sep-20 2:37am
v2

This is because you don't have permission to do SELECT's on that table. Ask your dba to give you permission.

Grant permission sql-script:
SQL
GRANT INSERT, UPDATE, SELECT ON YourTable TO User1, User2


Giving and removing permissions in SQL Server[^]
 
Share this answer
 
v2
Comments
Gopal Rakhal 20-Jul-12 8:20am    
thanks
StianSandberg 20-Jul-12 8:26am    
You're welcome. Pleas accept my answer if it solved your problem :)
I solved this by referring properties of login user under the security, logins. then go to User Mapping and select the database then check db_datareader and db_dataweriter options.
 
Share this answer
 
Comments
Kats2512 25-Jul-18 8:34am    
Just 6 years late.
Just go to the properties of ur deàired table
And go to the permission and select the use
as public. And the check the queris required
Below. Done enjoy......✌️✌️
 
Share this answer
 
Comments
Richard Deeming 25-Sep-20 9:01am    
As already more than adequately explained in solution 1. You have added nothing to the discussion.

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