October 18, 2010 at 10:46 am
Hi,
Is it possible to create an user on SQL Server that is owner of a database (can create, alter, drop tables) but has no access to other databases?
Thanks,
Pedro
October 18, 2010 at 11:10 am
db_owner is referred to a single database, it's not a server role.
You just have to create the user as db_owner of the target database and leave it as "public" on the other databases.
-- Gianluca Sartori
October 18, 2010 at 11:13 am
but being public won't he have select and other permissions on the other databases?
I don't want the user to be able to perform cross database selects or other stuff like that.
Thanks,
Pedro
October 18, 2010 at 11:24 am
Public role doesn't have table access, don't worry about that.
-- Gianluca Sartori
October 18, 2010 at 11:25 am
Many thanks...
Pedro
October 18, 2010 at 11:27 am
You could also avoid mapping the login to a db user completely, so that it can't access the database at all.
-- Gianluca Sartori
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply