Security is invalid when restoring a DB to another Server

From: Mike C. (noname_at_nonet.net)
Date: 05/22/03


Date: Thu, 22 May 2003 11:10:39 -0400


I made a backup of a database (DB1) from Server1.
I created a DB on Server2 with the name "DB1", then did a restore from the
backup.
I created a Security Login on Server2 with the same name as what is expected
from the DB1 database. When I attempt to assign database access to my newly
restored DB, I get a message that the Login already exists. I eventually had
to drop the user from the DB, create the Login, assign access to the DB,
then implicitly reassign his permissions to all the Stored Procs and various
tables in the DB. This was very time consuming and prone to errors.

Is there a way to accomplish this without all the overhead?

Thanks,

Mike C.



Relevant Pages

  • Re: Error on database restore using Enterprise Manager
    ... "goodofficesnew" on Server2 with the following file locations: ... I have been using the backup file generated by "goodofficesnew" from Server2 ... to restore latest database to "NewArchitecture" on Server1 without problem. ... RESTORE DATABASE is terminating abnormally. ...
    (microsoft.public.sqlserver.programming)
  • Re: Keep it alive
    ... Sub OpenPasswordProtectedDB() ... TSI SOON database add-in ... another db (let's call it db1), display the application window to the ... Because the database object is closed as soon as the memory used by db1 ...
    (microsoft.public.access.formscoding)
  • Re: Are all records retrieved
    ... the last record in DB1 and navigated to the same last record in Db2 I ... the last record in Db2 which is being displayed from memory. ... Find methods or the Seek method, when the underlying Recordset contains ... last record it is retrieving this from the database thus showing me ...
    (comp.databases.ms-access)
  • Re: Link table from a secured database to another secured database
    ... but my boss didn't agree on it, coz the first database has been distributed ... >> user in the secured DB1. ... >> and I could open DB1 without asking for permissions! ... >Say user Tom exists in WG1 and has permissions to DB1. ...
    (microsoft.public.access.security)
  • SQL DB to MySQL
    ... We have SQL Server 2000 databases residing on one server, ... DB1 contains the main data, ... DB2 contains data about the most recent changes to DB1, The key, table ID, ... Our plan is to schedule a DTS package to update the MySQL database. ...
    (microsoft.public.sqlserver.dts)