How to restrict permissions to a single database

I need to create a SQL user account (from a domain account) that has full access to do anything they want to new databases. They should be able to create, update, add, delete, backup, etc... any database as long as they are not explicitly denied access. I want to be able to selectively deny ALL access to certain databases. Is this possible? If so, how?
LVL 22
Russ SuterSenior Software DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kyle AbrahamsSenior .Net DeveloperCommented:
There is no explicit deny.  The best way to achieve this would be to do the following:  

Give them db_creator writes.  db_creator allows users to create dbs and when you create a db you're automatically DBO (so they can modify the db.)  

Grant DBO to exisiting dbs which are needed.

Optional Security: Deny datareader/writer to any dbs that they shouldn't have access to.


If you give them security admin or sa then they could overwrite any options you choose.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
St3veMaxCommented:
Dont know if this idea fits your requirements completely; but you can do this by making this account dbo on the db's you wish; then in sql server properties (SSMS, R/Click, Props on the servername), select properties; find the user and hit 'Deny any database'

HTH
Russ SuterSenior Software DeveloperAuthor Commented:
Both good suggestions. Thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2005

From novice to tech pro — start learning today.