Re: How do I drop DBO access to a DB?



Hi
Because those users are members of db_owner database role or even sysdamin
on the instance?
Remove them from db_owner database role and make them to login with
separate login to the instance




"TLuebke" <TLuebke@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5039128D-0650-4825-881E-D9E8ABA54AF1@xxxxxxxxxxxxxxxx
I'm running an SQL 2005 in a classroom environment. Students are allowed
to
create databases and did so last night for a test. The instructor wants me
to
deny them access to the DB's they created so she can grade them. I can't
seem
to drop them from their DB's because they are linked as DBO.

How do I deny them access to a particular DB that they created?
I've tried sp_changedowner, revoke access and a few other scripts.


.



Relevant Pages

  • Re: archive database rights
    ... Tolga, ... If you make the login a member of the db_backupoperator database role, ... > I want a user in my domain (or in SQL) to access to SQL tables "only" for ...
    (microsoft.public.sqlserver.security)
  • Re: No users/groups can login to SQL Server unless part of sysadmin
    ... created groups in Active Directory. ... I created a login for the group ... To use Windows Authentication, assign a database role to the AD group. ...
    (microsoft.public.sqlserver.setup)
  • Re: You are not the owner specified for the object INFORMATION_SCHEMA...
    ... Just wanted to add that login with such names are ... And it is not a member of sysadmin server role db_owner ... database role, right? ... trying to execute the following statement, ...
    (microsoft.public.sqlserver.programming)
  • Re: AD groups and database roles
    ... Crate a database Role called 'MyRole' ... Add the the new user (mapped to the login) to the desired database ... I have made grants to a database role called 'App Users'. ...
    (microsoft.public.sqlserver.security)
  • permission
    ... There is a way to make a database role that only have permission to manage ... objects and deny to this role selects on this database? ... Adriano. ...
    (microsoft.public.sqlserver.security)

Quantcast