User Issues in DB Restore Production -> Dev/Stg

  • Does anyone have a solution to the restore problem from a production environment to a dev/stage environment where different users exist? For our enterprise ETL and reporting tools we use business process (BP) IDs that differ between environments, and of course, developers exist in dev/stage where they don't in production. Mapsid works if the same logins exist. I have resorted to manually reviewing users and their permissions in the database before restore, and then putting everything back afterwards.

    Thx

  • Prior to the restore you could script the users and permissions on the database.  Then after the restore run a script that removes all DB Users then run the script created before the restore with the correct users and permissions.

  • see "sp_change_users_login" in BOL.

    Corie Curcillo
    MCT, MCDBA, MCSD

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply