About this Document

To create a user account to a SQL Server database using T-SQL, use the following syntax: sp_grantdbaccess [ @loginame = ] 'login_name'[, [ @name_in_db = ] 'user_name' The name chosen for the user account can be different from that for the login account. ................
................