USE gwbase
GO

CREATE LOGIN gwbase WITH PASSWORD='gwbase', DEFAULT_DATABASE=gwbase, CHECK_POLICY=OFF, CHECK_EXPIRATION=OFF
GO

CREATE USER gwbase FOR LOGIN gwbase WITH DEFAULT_SCHEMA=dbo
GO

exec sp_addrolemember 'db_owner', 'gwbase'
GO

EXEC sys.sp_configure 'remote access', '1'
GO

RECONFIGURE WITH OVERRIDE
GO
