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
 how to create username to access only one db

Author  Topic 

Anand.A
Posting Yak Master

109 Posts

Posted - 2011-10-13 : 01:15:13
hi,
i create user-name and password for sql server 2008 but this user can access all the db

but i want to create user-name and password that user-name can access only one particular db in sql server 2008..

how to do this any one can help this

anand

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-10-13 : 01:31:03
create the user under logins on particular db and give access only to reqired objects

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

Anand.A
Posting Yak Master

109 Posts

Posted - 2011-10-13 : 01:45:18
shall u give me correct syntax for that
i dont knw how to write create user

anand
Go to Top of Page
   

- Advertisement -