Re: Database Users disappered after restore
From: Mike Epprecht (mike_at_epprecht.net)
Date: 08/28/03
- Next message: Rodrigo Costa: "MSDE - XP limited user access"
- Previous message: Dejan Sarka: "Re: Someone downloads information from my SQL Server"
- In reply to: Oladimeji Suberu: "Database Users disappered after restore"
- Next in thread: Linda Bendele: "Re: Database Users disappered after restore"
- Reply: Linda Bendele: "Re: Database Users disappered after restore"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 28 Aug 2003 16:56:32 +0200
Hi
Your users are stored in master. More importantly, the user ID and name is
the only reference in you database. sp_attach_db and sp_detach_db do not
move the master information, and since the same user does not exist on the
other machine, the linkage is lost.
On the other server, if you try to add a user to the database with the same
name, you will notice that it claims that the user already exists in the
database. That is because your user ID does not match the user name.
It is recommended to remove all users from a database before an
attach/detach so that you do not have orphaned users.
----------------------------
Mike Epprecht
Epprecht Consulting (PTY) LTD
Johannesburg, South Africa
Mobile: +27-82-552-0268
Specialist SQL Server Solutions and Consulting
"Oladimeji Suberu" <ladi.suberu@systemtech-ng.com> wrote in message
news:0bdc01c36d6b$4b8bd790$a501280a@phx.gbl...
> I am trying to restore a database from one machine to
> another. I 've tried using Backup/Restore and equally
> using DTS. I equally used attach method of transact SQL.
> At the end of any of the operation, the databasers are
> removed from the database living dbo only.
>
> Has anybody experienced this?
>
> Please help.
>
> Oladimeji Suberu
>
- Next message: Rodrigo Costa: "MSDE - XP limited user access"
- Previous message: Dejan Sarka: "Re: Someone downloads information from my SQL Server"
- In reply to: Oladimeji Suberu: "Database Users disappered after restore"
- Next in thread: Linda Bendele: "Re: Database Users disappered after restore"
- Reply: Linda Bendele: "Re: Database Users disappered after restore"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|