Cannot remove dbo rights from a user

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • MK

    Cannot remove dbo rights from a user

    In the login properties on the Database Access tab, a user's name says
    dbo instead of his name. I do not want him to have dbo permissions. I
    cannot drop the db_owner permissions that he has on the database
    because I get the error "Error 15405: Cannot use the reserved user or
    role name 'dbo'."

    How do I remove these permissions from this user?

  • Erland Sommarskog

    #2
    Re: Cannot remove dbo rights from a user

    MK (mhedblom@liber tysite.com) writes:[color=blue]
    > In the login properties on the Database Access tab, a user's name says
    > dbo instead of his name. I do not want him to have dbo permissions. I
    > cannot drop the db_owner permissions that he has on the database
    > because I get the error "Error 15405: Cannot use the reserved user or
    > role name 'dbo'."
    >
    > How do I remove these permissions from this user?[/color]

    Obviously this person is the owner of the database. If you don't want
    this, use sp_changedbowne r to make someone else the DB owner.


    --
    Erland Sommarskog, SQL Server MVP, esquel@sommarsk og.se

    Books Online for SQL Server 2005 at

    Books Online for SQL Server 2000 at

    Comment

    • MK

      #3
      Re: Cannot remove dbo rights from a user

      Unfortunately it was not that obvious. The properties of the database
      did NOT have him as the owner. It showed the owner as our system
      account. However, I ran sp_changedbowne r anyway just as a test and it
      removed his alias'. Strange but thank you so much!


      Erland Sommarskog wrote:[color=blue]
      > MK (mhedblom@liber tysite.com) writes:[color=green]
      > > In the login properties on the Database Access tab, a user's name says
      > > dbo instead of his name. I do not want him to have dbo permissions. I
      > > cannot drop the db_owner permissions that he has on the database
      > > because I get the error "Error 15405: Cannot use the reserved user or
      > > role name 'dbo'."
      > >
      > > How do I remove these permissions from this user?[/color]
      >
      > Obviously this person is the owner of the database. If you don't want
      > this, use sp_changedbowne r to make someone else the DB owner.
      >
      >
      > --
      > Erland Sommarskog, SQL Server MVP, esquel@sommarsk og.se
      >
      > Books Online for SQL Server 2005 at
      > http://www.microsoft.com/technet/pro...ads/books.mspx
      > Books Online for SQL Server 2000 at
      > http://www.microsoft.com/sql/prodinf...ons/books.mspx[/color]

      Comment

      • Erland Sommarskog

        #4
        Re: Cannot remove dbo rights from a user

        MK (mhedblom@liber tysite.com) writes:[color=blue]
        > Unfortunately it was not that obvious. The properties of the database
        > did NOT have him as the owner. It showed the owner as our system
        > account. However, I ran sp_changedbowne r anyway just as a test and it
        > removed his alias'. Strange but thank you so much![/color]

        Have the database been restored/attached from a different server
        instance?

        --
        Erland Sommarskog, SQL Server MVP, esquel@sommarsk og.se

        Books Online for SQL Server 2005 at

        Books Online for SQL Server 2000 at

        Comment

        Working...