Author |
Topic |
mary_itohan
Posting Yak Master
191 Posts |
Posted - 2011-12-16 : 08:34:19
|
hello guysi created a user who has a default permission of public and right clicked the user and added his select tables to his permissions listhowever when i run a select * from tablename I get this errorMsg 229, Level 14, State 5, Line 1The SELECT permission was denied on the object 'table', database 'table', schema 'dbo'.whats wrong ?thanksMI_____________________Yes O ! |
|
RickD
Slow But Sure Yak Herding Master
3608 Posts |
Posted - 2011-12-16 : 09:26:58
|
does it work if you run select * from dbo.tablename ? |
 |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2011-12-16 : 09:32:58
|
you need to grant access to table using GRANT t-sql statement------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
X002548
Not Just a Number
15586 Posts |
|
mary_itohan
Posting Yak Master
191 Posts |
Posted - 2011-12-16 : 11:29:17
|
Yes i did, grant select permission.Both with t sql and when i try graphically its checked.grant select on [table] to [user_name]Command(s) completed successfully._____________________Yes O ! |
 |
|
Sachin.Nand
2937 Posts |
Posted - 2011-12-17 : 07:37:05
|
Did you try giving permission on schema to the user ?Grant Select on Schema::[dbo] to [user] PBUH |
 |
|
mary_itohan
Posting Yak Master
191 Posts |
Posted - 2011-12-17 : 08:09:33
|
quote: Originally posted by Sachin.Nand Did you try giving permission on schema to the user ?Grant Select on Schema::[dbo] to [user] PBUH
no doesnt work _____________________Yes O ! |
 |
|
Sachin.Nand
2937 Posts |
Posted - 2011-12-17 : 10:01:17
|
quote: Originally posted by mary_itohan
quote: Originally posted by Sachin.Nand Did you try giving permission on schema to the user ?Grant Select on Schema::[dbo] to [user] PBUH
no doesnt work _____________________Yes O !
OK...So either you are doing something so stupid or you are not posting the whole scenario of your problem.Is the user part of db_denyreader role ?PBUH |
 |
|
mary_itohan
Posting Yak Master
191 Posts |
Posted - 2011-12-17 : 10:46:30
|
quote: Originally posted by Sachin.Nand
quote: Originally posted by mary_itohan
quote: Originally posted by Sachin.Nand Did you try giving permission on schema to the user ?Grant Select on Schema::[dbo] to [user] PBUH
no doesnt work _____________________Yes O !
OK...So either you are doing something so stupid or you are not posting the whole scenario of your problem.Is the user part of db_denyreader role ?PBUH
You are right, funny i never added that on creation, must be the default in sql 2008 r2_____________________Yes O ! |
 |
|
Sachin.Nand
2937 Posts |
Posted - 2011-12-17 : 13:19:08
|
quote: Originally posted by mary_itohanYou are right, funny i never added that on creation, must be the default in sql 2008 r2_____________________Yes O !
No its not.PBUH |
 |
|
|