I\'m using this code to create a new user.
/****** Object: User [primebox] ******/ IF NOT EXISTS (SELECT * FROM sys.database_principals WHERE name = N\'primebox
In addition you can create a new login also by UI of the Sql Server Management Studio by clicking on the main security folder
and after creating the user