Re: Creating user after backup
From: Stamey (Stamey@PostToTheGroupOnly)
Date: 12/12/02
- Next message: Stamey: "Re: sa pswrd attempts"
- Previous message: Gert E.R. Drapers: "Re: Local system permissions"
- In reply to: meho kodro: "Creating user after backup"
- Next in thread: Russell Fields: "Re: Creating user after backup"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Stamey" <Stamey@PostToTheGroupOnly> Date: Thu, 12 Dec 2002 11:35:24 -0500
It sounds like you may have restored to a different SQL Server. If this is
not the case please post more info.
If this IS the case you have run into a typical problem with restoring SQL
DBs to sifferent servers. The user is in the DB's Sysusers table but the
User's SID does not match the user's SID in the SysLogins table in the
Master DB. Typically you will delete the user, by name, from the database
and then add them back in using stored procedures or EM GUI. In your case
you may not be able to delete that user as it is the owner of objects in the
DB, or it may just introduce more problems. You may be able to update the
SID column in the ProblemDB..SysUsers with the value for that user from from
the Master..SysLogins table. you will need to change the "Allow
modifications to be made directly to the system catalogs" option to True
when you do this.
Chris
"meho kodro" <kodro_at_work@hotmail.com> wrote in message
news:00b101c2a1b7$c24034b0$8ef82ecf@TK2MSFTNGXA04...
>
> I have restored a backup of a DB. When I want to create
> the user owner of that database, it raises an error saying
> that the user already exists, but I doesn't appear in the
> users screen.
>
> How can I solve this problem? I can't create a user with a
> different name because all the objects in the DB belong to
> that user.
>
> Thanks in advance.
- Next message: Stamey: "Re: sa pswrd attempts"
- Previous message: Gert E.R. Drapers: "Re: Local system permissions"
- In reply to: meho kodro: "Creating user after backup"
- Next in thread: Russell Fields: "Re: Creating user after backup"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|