The code below allow me to create a user in sql server through the use of a query. it currently creates a user profile but it gives the user access to all of the databases on the server. I would only like them to have Access to the "TEST" database how would i go about doing this
CREATE LOGIN [SupportUser]
WITH PASSWORD=N'SupportUser',
DEFAULT_DATABASE=[master],
DEFAULT_LANGUAGE=[us_english],
CHECK_EXPIRATION=OFF,
CHECK_POLICY=OFF
GO