Re: change user's login for dbo user

From: Sue Hoegemeier (Sue_H_at_nomail.please)
Date: 11/20/03

  • Next message: John P.: "xp_sendmail error: Cannot generate SSPI context"
    Date: Thu, 20 Nov 2003 15:23:34 -0700
    
    

    You'd want to change the database owner using
    sp_changedbowner. You can find more info on the stored
    procedure in books online.

    -Sue

    On Thu, 20 Nov 2003 12:40:21 -0800, "molly"
    <anonymous@discussions.microsoft.com> wrote:

    >Two of our SQL 2000 databases list the user dbo in the
    >Users container and have associated a Windows
    >authenticated account (\\domain\user) as the login for
    >dbo instead of a SQL server login. We have since renamed
    >this Windows account resulting in the dbo user having no
    >valid login. I am looking at the books online for
    >sp_change_users_login which I thought would fix issue,
    >but it indicates this sp cannot be used for dbo user. How
    >can I change the login for dbo without breaking the
    >database? Help!
    >thanks for your help!


  • Next message: John P.: "xp_sendmail error: Cannot generate SSPI context"

    Relevant Pages

    • Re: Roles & Users
      ... "John Bell" wrote in message ... >> I think just saying things like 'dbo is the database owner' can lead to ... >> It is the user name assumed by the login listed in sysdatabases as the ...
      (microsoft.public.sqlserver.server)
    • Re: users with no logins
      ... User login mapping can get out-of-sync following a restore. ... an error stating 'the proposed owner is already a user in the database' ... EXEC sp_changedbowner 'TempLogin' ... the dbo user name shows "sa" as the login. ...
      (microsoft.public.sqlserver.security)
    • Re: Event ID 28005; Error 15517
      ... If this database was restored from another server, the login that is the ... database owner (and therefore the login that becomes dbo) does not exist on ... try changing the database owner by running: ...
      (microsoft.public.sqlserver.security)
    • Re: Windows Authenticated Database Owner
      ... Without a valid database owner login, you may have problems with some ... It's a trivial task to change the database owner to a valid login using ... > I've got a windows-authenticated login that is the database owner. ...
      (microsoft.public.sqlserver.security)
    • Re: SQL Server 2005 / securityadmin role / SSMS
      ... The login can change another login's password, using SQL ... I'm a little puzzled, because Books Online says: ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ...
      (comp.databases.ms-sqlserver)