restore a database to a new SQL 2005 SERVER

  • a good evening,

    I want to restore a database (sql 2005 ) to a completely new sql2005 server

    When I do this then I see the database

    but with the user I see the name but the login is empty and grey so I can't change it

    can somebody tell me how to resolve this problem

  • resolved with the below query

    USE [database];

    Go

    sp_change_users_login @Action= 'update_one', @UserNamePattern=,

    @LoginName=[loginname];

    GO

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

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