Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to assign role to a database in SSMS?
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2008
Divers
Thread ID:
01529571
Message ID:
01529581
Vues:
18
>>>Hi,
>>>
>>>I need to assign a role db_owner to a database. How do I do it in SSMS or in T-SQL?
>>>
>>>TIA.
>>
>>If you are just adding a user to a role, see..
>>
>>http://sqlserverplanet.com/security/add-user-to-role/
>
>Thank you. This helps.
>
>Just another quick question. If I need to create a user, would it be the same as what is referred to in SSMS: Security -> Logins -> New login?

Yes. In the Security item for the server (way at the bottom of object explorer tree) you create a new SQL login, set the name and password, set the default database. Then in the Security item for the particular database, you add a new user with the name you gave the login. You can set the roles for the user there.

You can also do it via command..

http://msdn.microsoft.com/en-us/library/ms189751.aspx
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform