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 SQL Server, users are different to logins.
To create a user for a database, you first have to create a login for the server using the create login syntax