August 24, 2010 at 3:35 pm
Generally, you would assign someone to one role. Specifically, the roles "datareader" and "denydatareader" counter each other.
Even better is to create a new role, and assign the specific permissions to that role. Then, add users to the role.
August 24, 2010 at 9:39 pm
USE [demodb]
GO
CREATE USER [testme] FOR LOGIN [testme]
GO
USE [demodb]
GO
EXEC sp_addrolemember N'db_accessadmin', N'testme'
GO
USE [demodb]
GO
EXEC sp_addrolemember N'db_backupoperator', N'testme'
GO
USE [demodb]
GO
EXEC sp_addrolemember N'db_datareader', N'testme'
GO
=============================================================
/* Backups are worthless, Restores are priceless */
Get your learn on at SQL University!
Follow me on Twitter | Connect on LinkedIn
My blog: http://sqlchicken.com
My book: Pro Server 2008 Policy-Based Management
Viewing 2 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply