Re: Accidentally dropped DBO from database
From: lslmustang (lslmustang_at_discussions.microsoft.com)
Date: 01/20/05
- Next message: Sue Hoegemeier: "Re: Accidentally dropped DBO from database"
- Previous message: Tim: "Re: Backing up transaction logs"
- In reply to: Sue Hoegemeier: "Re: Accidentally dropped DBO from database"
- Next in thread: Sue Hoegemeier: "Re: Accidentally dropped DBO from database"
- Reply: Sue Hoegemeier: "Re: Accidentally dropped DBO from database"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 20 Jan 2005 08:57:06 -0800
The user dbo was dropped from sysusers. This did not solve the problem. I
ended up restoring the database from backup but that took several hours and I
had been hoping a quick script to add dbo back to sysusers might solve it.
"Sue Hoegemeier" wrote:
> You can use sp_changedbowner and dbo will map to whatever
> login you assign as the database owner with
> sp_changedbonwer.
> You can find more information on sp_changedbowner in SQL
> Server books online.
>
> -Sue
>
> On Tue, 18 Jan 2005 06:25:03 -0800, "Linda"
> <Linda@discussions.microsoft.com> wrote:
>
> >I altered a script that drops all users from a database and accidentally
> >changes an AND to an OR so that the user DBO was dropped after a refresh from
> >production to dev.
> >
> >Can I readd this user or is the only solution is to restore from backup?
> >
> >Thanks,
> >Linda
>
>
- Next message: Sue Hoegemeier: "Re: Accidentally dropped DBO from database"
- Previous message: Tim: "Re: Backing up transaction logs"
- In reply to: Sue Hoegemeier: "Re: Accidentally dropped DBO from database"
- Next in thread: Sue Hoegemeier: "Re: Accidentally dropped DBO from database"
- Reply: Sue Hoegemeier: "Re: Accidentally dropped DBO from database"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|