1) Crea l'utente sul server
2) Aggiungi l'utente al database specificato
3) Concedi l'accesso in sola lettura al database
USE [master]
CREATE LOGIN [SomeUserName] WITH PASSWORD=N'[email protected]', DEFAULT_DATABASE=[c], DEFAULT_LANGUAGE=[us_english], CHECK_EXPIRATION=ON, CHECK_POLICY=ON
GO
USE [c]
CREATE USER [SomeUserName] FOR LOGIN [SomeUserName] WITH DEFAULT_SCHEMA=[dbo]
GO
EXEC sp_addrolemember N'db_datareader', N'SomeUserName'