sys.xp_grantlogin
Grants a Windows group or user access to SQL Server.
What changes
- Input
- Not stated in the Microsoft summary.
- Output or change
- Grants a Windows group or user access to SQL Server.
Syntax at a glance
sys.xp_grantlogin
[ @loginame = ] N'loginame'
[ , [ @logintype = ] 'logintype' ]
[ ; ]
Work example
Grants a Windows group or user access to SQL Server.
Read the permission and security notes. Describe the host or instance effect without running the procedure.
Check your work Which external resource or server capability could this procedure reach?
Open Microsoft Learn for full syntax, permissions, and details for your version.