Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moving SQL to a new array 1

Status
Not open for further replies.

SQLBill

MIS
May 29, 2001
7,777
US
I know I'm probably missing something obvious, but...

We are moving our SQL Server 2000 to a new set of hard drives. I can detach the user databases, but the master, msdb, and tempdb can not be detached. I can put them into single-user mode via OSQL.

Issue: we are going to copy the files over from one array to the other. My understanding is that you can only copy the .mdf and .ldf files if they are detached. Is this true? If so, how do I detach the master, msdb, and tempdb databases or does putting them in single-user mode do the same thing?

-SQLBill
 
Thanks Terry,

The big thing here is that we are NOT moving SQL to new directories, new drives letters, etc. We are just moving to a new set of hard drives that are being built the exact same way the original ones are set up. So, I'm thinking stopping services and just copying the data over will work. But I wanted to have that 'warm and fuzzy' feeling that it was going to work.

Well, it happens today. I'll let everyone know what we did and how it worked.

-SQLBill
 
Here's the update (after working 36 hours of overtime). SQL Server and my data came up just fine. If you are moving SQL Server databases to a new set of hard drives and nothing else is changing (drive letters stay the same), then all you need to do is stop the services and copy everything over. I didn't even have to reload SQL Server, just copied all the files over to the hard drives.

We did have major hardware issues, but that wasn't caused by SQL Server.

Thanks for all the inputs.

-SQLBill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top