Click here to Skip to main content
15,891,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

Although i have provided the readonly access to the user, i am getting this error.

The server principle "usename" is not able to access the database "databasename" under the current security context.

What should i do?
Posted

Use the following links for permission:

http://msdn.microsoft.com/en-us/library/ms189612(v=sql.90).aspx[^]


thanks,
Ambesha
 
Share this answer
 
Simple just add the user to the db_datareader role.

example:
SQL
exec sp_addrolemember 'db_datareader',YourLogin


For more information plese refer the following link:
http://msdn.microsoft.com/en-us/library/ms188629(SQL.90).aspx[^]

[edit] Code blocks corrected and clickable link - Nelek [/edit]
 
Share this answer
 
v2

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