How to map a user to a sql server database


Suppose a new database ‘dbNewDB’ is created on sql server database. Now to add an existing  user(existing sql server user) to this database with control,  following script can be use :

Let the existing user is ‘existingUser’

USE  dbNewDB
GO
CREATE USER existingUser FOR LOGIN existingUser WITH DEFAULT_SCHEMA=[dbo]
GO       
GRANT CONNECT,CONTROL to existingUser