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
 General SQL Server Forums
 New to SQL Server Programming
 Databases Privileges

Author  Topic 

1sabine8
Posting Yak Master

130 Posts

Posted - 2008-10-23 : 02:25:58
Hi,
I have SQL Sever 2005 installed with many databases. I need to grant access to only one user to specific databases. How can this be.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-10-23 : 02:32:04
add the users login to database from sql management studio object explorer.B/w are you using sql authentication mode or mixed mode?
Go to Top of Page

1sabine8
Posting Yak Master

130 Posts

Posted - 2008-10-23 : 02:36:36
Hi,
Can you please give me the different steps i need to perform?
I never did this before
I'm using the windows authentication mode, not the mixed mode.
Thanks for your quick reply...
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-10-23 : 03:09:42
if its a sql login you want to add use sp_addlogin

http://doc.ddart.net/mssql/sql70/sp_adda_20.htm

and if you want to add windows login, use sp_grantdbaccess

http://doc.ddart.net/mssql/sql70/sp_ga-gz_5.htm
Go to Top of Page
   

- Advertisement -