How to: Create a Database User
SQL Server 2005
New:
17 July 2006
sys.database_principals (Transact-SQL)
This topic shows how to create a database user mapped to a SQL Server login. The topic assumes that a corresponding SQL Server login already exists. For information about creating a SQL Server login, see How to: Create a SQL Server Login.
-
In SQL Server Management Studio, open Object Explorer and expand the Databases folder.
-
Expand the database in which to create the new database user.
-
Right-click the Security folder, point to New, and then click User.
-
On the General page, enter a name for the new user in the User name box.
-
In the Login name box, enter the name of a SQL Server login to map to the database user.
-
Click OK.
Concepts
PrincipalsOther Resources
CREATE USER (Transact-SQL)sys.database_principals (Transact-SQL)