November 13, 2007 at 6:07 am
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?
November 13, 2007 at 7:33 am
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.
November 13, 2007 at 7:57 am
Refer to KB 246133 (http://support.microsoft.com/kb/246133/)
Tommy
Follow @sqlscribeNovember 13, 2007 at 8:57 am
November 13, 2007 at 9:27 am
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
November 13, 2007 at 11:15 pm
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
November 14, 2007 at 2:50 am
We have done the same that sugesh suggested.
"More Green More Oxygen !! Plant a tree today"
August 27, 2010 at 11:07 am
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
August 24, 2011 at 6:01 am
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