Login Name/User Name mismatch

  • Hi

    I have recently restored a production database on to a new Disaster recovery server (SQL 2000) and am experiencing a problem with Login Name/User name mismatch

    On our production box we have the following

    User name                Login Name

    ARAdmin                   ARAdmin

    dbo

    On our Disaster Recovery Box we have

    User name                Login Name

    ARAdmin                  

    dbo                         ARAdmin

    Can anybody tell me how I can get the D/R box User/Logins to match the Production box.

    Thanks

    Gary

  • Looks you have to fix both.

    First, you can run sp_change_user_login to fix AR admin, see the link

    http://msdn2.microsoft.com/en-us/library/ms174378.aspx

    Then fix DBO on both servers by linking DBO to SA or other login by

    sp_changedbowner, see the link

    http://msdn2.microsoft.com/en-us/library/ms178630.aspx

     

     

     

    Regards,Yelena Varsha

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

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