SQL Server/T-SQL Tutorial/System Functions/sp addlogin
A statement that creates a new SQL Server login ID
EXEC sp_AddLogin JohnDoe, pw8806
Creates a new SQL Server login and then maps that login to a new database user
USE Master
GO
sp_addlogin "Paul",
--USE AdventureWorks2000
GO
sp_grantdbaccess "Paul",
SQL Server 2000 Windows login: