sp_grantlogin (Transact-SQL)
SQL Server 2012
Creates a SQL Server login.
Important
|
|---|
|
This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature. Use CREATE LOGIN instead. |
sp_grantlogin calls CREATE LOGIN, which supports additional options. For information on creating SQL Server logins, see CREATE LOGIN (Transact-SQL)
sp_grantlogin cannot be executed within a user-defined transaction.

Important