Sql Logins

  • Hi

    I am facing one problem. I created SQL login for our employees, giving access to difftenet databases with different permiossions. The problem is when i restore the database in the server,  the permissions were reset.

    Can any one please suggest me what to do, to keep the permissions on, after i restore the Database.

    Thanks

    G.Srinivas Reddy

     

     

     

  • Dear Srinivas,

    Are u restoring the datbase on the same instance or different instance ?


    subban

  • Dear Subhan

     It is different instance.

    GSR

     

  • If it on a different instance/server,

    1. Create the login name

    2. Restore the DB

    3. Attach DB user with the Login name using

    SP_CHANGE_USERS_LOGIN 'UPDATE_ONE', 'DB USER NAME','SQL SERVER LOGIN NAME'

     

    SUBHAH


    subban

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

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