Re: Accidentally dropped DBO from database
From: Sue Hoegemeier (Sue_H_at_nomail.please)
Date: 01/18/05
- Next message: Sue Hoegemeier: "Re: Can't query linked Access database specified by UNC"
- Previous message: Jason Delaune: "Re: Error Granting DB / Role Access"
- In reply to: Linda: "Accidentally dropped DBO from database"
- Next in thread: lslmustang: "Re: Accidentally dropped DBO from database"
- Reply: lslmustang: "Re: Accidentally dropped DBO from database"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 18 Jan 2005 12:58:38 -0700
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: Can't query linked Access database specified by UNC"
- Previous message: Jason Delaune: "Re: Error Granting DB / Role Access"
- In reply to: Linda: "Accidentally dropped DBO from database"
- Next in thread: lslmustang: "Re: Accidentally dropped DBO from database"
- Reply: lslmustang: "Re: Accidentally dropped DBO from database"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|