Move logins from SQL 2K to SQL 2005

  • This HAS to have been asked before. I tried using sp_help_revlogin in article 246133 but it did not work.

    Obviously there needs to be a script that runs on SQL 2000 that will make a sp which will generate output that can be used by SQL 2005. I have tried a couple different scripts but get nowhere.

     

    Please help!

  • How to transfer logins and passwords between instances of SQL Server

    http://support.microsoft.com/default.aspx/kb/246133

     

    MohammedU
    Microsoft SQL Server MVP

  • i learned too late that the SSIS job doesn't transfer passwords. Had to manually assign the password on like 20 SQL Logins on Friday.

  • I am using the sP_help_revlogin since long time without any issues...

    How to transfer logins and passwords between instances of SQL Server

    http://support.microsoft.com/default.aspx/kb/246133

    MohammedU
    Microsoft SQL Server MVP

  • I use this script.

     

    SET NOCOUNT ON

    SELECT 'EXEC sp_addlogin @loginame = ''' + loginname + ''''

    ,', @defdb = ''' + dbname + ''''

    ,', @deflanguage = ''' + language + ''''

    ,', @encryptopt = ''skip_encryption'''

    ,', @passwd ='

    , cast(password AS varbinary(256))

    ,', @sid ='

    , sid

    FROM syslogins

    WHERE name NOT IN ('sa')

    AND isntname = 0

     

  • I used sp_help_revlogin when I transferred our servers to 2005 from 2000.  The thing that caught me is that some of the SQL logins didn't work after the transfer since the passwords become case sensitive in 2005 where they weren't in 2000.  So some applications were using passwords of the wrong case and they had be updated.

Viewing 7 posts - 1 through 6 (of 6 total)

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