Hello,
Let me start off by stating I am not a seasoned DBA. I have been given a project to copy everything (SQL databases, SSIS Packages, SQL Jobs, Logins, Server Roles assigned to users, etc…). Basically set up a new SQL Server so that I can decommission the old SQL Server. I think I have everything copied over except for the SQL logins. I was able to copy over the users with Windows (Active directory) logins by simply choosing Script login as; CREATE To; New Query Editor Window on the source SQL server and then copy, paste and run the query on the destination server. When I follow this same method on the SQL logins the query is created as below:
/****** Object: Login [MyDataBase] Script Date: 09/08/2015 11:50:40 ******/
/* For security reasons the login is created disabled and with a random password. */
/****** Object: Login [MyDataBase] Script Date: 09/08/2015 11:50:40 ******/
CREATELOGIN [MyDataBase] WITHPASSWORD=N'¬G4~)m‚à_u131 ?_6;$ãÍæ)KÞÅ´ò5_ëÜÉw_h|',DEFAULT_DATABASE=[MyDataBase],DEFAULT_LANGUAGE=[us_english],CHECK_EXPIRATION=OFF,CHECK_POLICY=OFF
GO
ALTERLOGIN [MyDataBase]DISABLE
My question is; if I create the SQL login using the script above it will generate a random password. How can I change this password if it is random and I don’t know what it is?
If I go into the properties of a SQL login I see the Password and Confirm password fields are populated. The person who set this up no longer works at my instution so I don’t know which password he created for the SQL logins.
How do I copy a SQL login from the source SQL server to the new destination SQL server?
Also, When I finally do copy over the SQL logins will there be an issue with the SID’s? If yes, what will that effect?
The source SQL server is SQL Server 2005 SP2 standard edition 32 bit. The OS is Windows Server 2003 R2 SP2. The destination SQL server is SQL Server 2012 Developer Edition x64 and the OS is Windows Server 2012 R2 Standard.
Any assistance will be greatly appreciated. Thank you.
Dave
David Young