Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Select rights on the DB

Author  Topic 

nitin1353
Constraint Violating Yak Guru

381 Posts

Posted - 2006-10-10 : 00:37:18
Gurus
I want to give the users only select priviliges on the DB.What command i will use?
Regards
Nitin

dewacorp.alliances

452 Posts

Posted - 2006-10-10 : 00:51:53
You can give the user access to datareader access.
Go to Top of Page

eyechart
Master Smack Fu Yak Hacker

3575 Posts

Posted - 2006-10-10 : 01:22:15
the easiest way to do this would be to use Enterprise manager and grant the datareader role to the user login (as valdyv suggested).

you can also do the same via the sp_addrolemember system stored procedure. More info on this is in BOL (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adminsql/ad_security_90f9.asp)




-ec
Go to Top of Page

nitin1353
Constraint Violating Yak Guru

381 Posts

Posted - 2006-10-10 : 05:09:51
Thanks a ton
Regards
Nitin
Go to Top of Page
   

- Advertisement -