SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Database Reader Permission


Database Reader Permission

Author
Message
aspirant.dba
aspirant.dba
SSC Veteran
SSC Veteran (221 reputation)SSC Veteran (221 reputation)SSC Veteran (221 reputation)SSC Veteran (221 reputation)SSC Veteran (221 reputation)SSC Veteran (221 reputation)SSC Veteran (221 reputation)SSC Veteran (221 reputation)

Group: General Forum Members
Points: 221 Visits: 113
We have nearly more than 100 user DB's in a Server in 2005.
I wanted to give Datareader permission to all most of the DB's using Query.
We have nearly more than 40 logins in this server.
Plz tell me a procedure to give Data_reader permission.
I tried this , but not working
EXEC sp_addrolemember 'db_datareader', 'Username'

Please give me a solution for me to perform task easier.
Thanks for all those answering.
Greg Charles
Greg Charles
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: General Forum Members
Points: 11841 Visits: 5985
It would be easier to offer advice if you post what happened when you executed sp_addrolmember. I'm going to guess you got an message that said something like, "User 'Username' doesnot exist in this database". A login has to be granted access to a database before it can be a member of a fixed database role.

Greg
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search