Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Moving databases to VM

Author  Topic 

sqlpal2007
Posting Yak Master

200 Posts

Posted - 2012-05-09 : 10:23:21
Hello All,

We have SQL 2005 SP2 server and we need to move it to VM keeping the SAME NAME.

When I install SQL server, I don't want to create new system databases (msdb, master and model) as we have our logins, jobs, dtsx there. Is there any way I could install the SQL 2005 without system databases and then move these DBs from old box to the new by backup and restore. Or I can overwrite these DBs if that's the way to go.

Also, this server has SSRS service and a few important reports. Will they have any impact as I will be installing SSRS also. I donlt know where the DataSource and security reside.

Please provide suggestions so the migration would be smooth.

Thanks much,

jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2012-05-09 : 15:17:08
Have you spoken to the VM administrator about doing a Physical to Virtual Migration (P2V)?
Obviously , if you're changing OS it's a problem.

If you do a new install - the system databases are created. You can migrate the relevant data

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-05-09 : 15:20:01
You can do what you want if you aren't changing paths. Can you have the paths be exactly the same? If yes, then this is how I do it:

1. Install SQL Server on the new box, making sure to use same paths for everything
2. Stop SQL on new and old box
3. Copy over all database files (mdf, ldf) for all databases (user and system) to the correct paths
4. Start SQL on new box
5. Voila!

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-05-09 : 16:50:23
I forgot to mention to do the rename after you are done with those steps. So you would use a temporary name on the VM to get it all setup. Follow the normal steps to rename a SQL Server (BOL topic).

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -