SP_AddLogin or SP_GrantLogin (For windows users to login) to add the login into the SQL server, then use the GRANT and DENY keywords to add object permissions to the user accounts. Also, use sp_grantdblogin to grant login permissions to a particular database.
You can't do inherited permissions in SQL Server the way you are saying. What you need to do is create a SQL account that is mapped to a Windows Users group of some sort. Grant the permissions to that mapped login, then add your user to the Windows group which will "inherit" the permissions. Although, a deny in another group which the user is a part of will kill that same specifically granted permission on the first group.
Look this up in Books Online. It will give you more details.
Catadmin - MCDBA, MCSA
Beware the error of pre-emptive poultry inventory!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.