SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Migrating SQL to a new Server
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

scabral7
Starting Member

49 Posts

Posted - 05/02/2012 :  10:09:01  Show Profile  Reply with Quote
Hi,

We currently have a SQL 2008 datawarehouse server with about 15 different databases.

We were given a new Server (faster,more memory,etc..) with a fresh copy of SQL 2008 R2 installed.

I will need to move all of the databases from the old SQL server to the new SQL server. The issue that i have is that on the current SQL server, we have a C: and D: drive. Some of the databases and logs are on C: and others on D:. On the new SQL server we have C:, D:, and E: drives.

What is the best way to move the databases from the old SQL server to the new SQL server and have the files reside on a different drive? For example, If i have database called ABC and the data and log files are stored on C:\DataFiles. I want to move them to the new SQL server and have the data file on D:\DataFiles and the log file on E:\LogFiles.

I will also be moving the system databases as well. Those all reside on C: and will be on C: on the new server. I imagine i will have to move those first.

Since this is a datawarehouse, i don't have any issues with stopping the service if I need to.

Thanks

russell
Pyro-ma-ni-yak

USA
4993 Posts

Posted - 05/02/2012 :  12:40:28  Show Profile  Visit russell's Homepage  Reply with Quote
Best way is to restore your latest backups.

Use the WITH MOVE option in the RESTORE statement.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000