USE HWProjectView GO IF NOT EXISTS(SELECT * FROM sys.sql_logins WHERE name=N'HWProjectViewUser') BEGIN CREATE LOGIN [HWProjectViewUser] WITH PASSWORD='My_P4SsW0Rd-H3R3' END IF NOT EXISTS(SELECT * FROM sys.database_principals WHERE name=N'HWProjectViewUser') BEGIN CREATE USER [HWProjectViewUser] FOR LOGIN [HWProjectViewUser] EXEC sp_addrolemember N'TOMDEV\EXPRESS2012', N'HWProjectViewUser' END GO
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)