In this post explains how to use the SQL Server CREATE USER statement with syntax and examples.
The CREATE USER statement creates a database user to log into SQL Server. A database user is mapped to a Login, which is an identity used to connect to a SQL Server instance.
The syntax for the CREATE USER statement in SQL Server (Transact-SQL) is:
The name of the database user that you wish to create.
The Login used to connect to the SQL Server instance. Learn how to create a Login.
Let's look at how to create a database user using the CREATE USER statement in SQL Server (Transact-SQL).
For example:
This CREATE USER example would create a new database user called AODBA in SQL Server. It would use the AODBA Login as the identity to connect to the SQL Server instance.