CREATE USER
defines a user
What changes
- Input
- catalog
- Output or change
- security catalog: user
Syntax at a glance
CREATE USER user_name [ { FOR | FROM } LOGIN login_name ] [ WITH <limited_options_list> [ , ... ] ] [ ; ]
Work example
A database login or external identity needs a database principal.
Map the principal to its authentication source, default schema, role membership, and removal process.
Check your work The user maps to the intended identity and has no role beyond the job requirement.
Open Microsoft Learn for full syntax, permissions, and details for your version.