moving databases,logins

  • hi, how to move databases from old server 2005 to new server 2005 and also logins.if we moved databases and logins from old server.will it contain database ,logins or not?

  • Logins are stored in the master database,

    thus you can move your database but the logins wont be moved over. the DB usernames will be though. Using these you can relink the usernames and create logins. Use inbuilt stored procedure - I can't remember the name of it. Books online should give you these.

  • Refer to KB 246133 (http://support.microsoft.com/kb/246133/)

  • Hi,

    Check also the following http://blogs.techrepublic.com.com/howdoi/?p=140

    Regards,

    Ahmed

  • Hi There,

    from the source server bcp out..syslogins and copy to the target server using bcp in command.Hope it will resolve your login issue.

    Cheers

    Menaka

  • Databases can be moved using the detach and attach method. For logins there is a script in MICROSOFT site that will script your logins with password. you can use that.

    Cheers,
    Sugeshkumar Rajendran
    SQL Server MVP
    http://sugeshkr.blogspot.com

  • We have done the same that sugesh suggested.

    "More Green More Oxygen !! Plant a tree today"

  • Since I found this thread on this topic, it should be noted that MS has two KB's regarding moving login accounts between SQL servers.

    One KB is for moving logins between SQL7 to SQL2k or SQL2k to SQL2k

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

    The other is for moving logins between SQL 2k5/8 to 2k5/8

    http://support.microsoft.com/kb/918992/

    The reason for the differences is because they changed some of there sysobject schema.

    Cheers.

    Bill

  • we've big script you execute that in primary server that creates two stored procedures in master database 1.sp_hexadecimal

    2.sp_revlogin

    if you execute first one it give one more script for us you execute that one (result script)in secondary then you can transfer dbs.in the same way if you execute sp_revlogin you can transfer logins also.

Viewing 9 posts - 1 through 8 (of 8 total)

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