|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Move Database StoreWe are replacing our drive arrays on our production SQL 2000 server. Can
anyone please tell me what I have to do to relocate the entire store? Let's assume that I want to move everything from F:\SQLDATA to G:\SQLDATA. Can I stop SQL server xcopy f:\sqldata g:\sqldata /e /i point SQL to G:\SQLDATA start SQL server Life is good If so, how and where do I reset where SQL looks for the files? in step 3? How to move SQL Server databases to a new location by using Detach and
Attach functions in SQL Server http://support.microsoft.com/kb/224071/en-us Note that the system databases each have special considerations. -- Geoff N. Hiten Senior Database Administrator Microsoft SQL Server MVP Show quote "de Graff" <rjdegr***@hydro.mb.ca> wrote in message news:uLsVDeHSGHA.196@TK2MSFTNGP10.phx.gbl... > We are replacing our drive arrays on our production SQL 2000 server. Can > anyone please tell me what I have to do to relocate the entire store? > Let's assume that I want to move everything from F:\SQLDATA to G:\SQLDATA. > Can I > > stop SQL server > xcopy f:\sqldata g:\sqldata /e /i > point SQL to G:\SQLDATA > start SQL server > Life is good > > If so, how and where do I reset where SQL looks for the files? in step 3? > Exactly what I was looking for. Thanks.
Show quote "Geoff N. Hiten" <SQLCrafts***@gmail.com> wrote in message news:uikhynHSGHA.1844@TK2MSFTNGP12.phx.gbl... > How to move SQL Server databases to a new location by using Detach and > Attach functions in SQL Server > http://support.microsoft.com/kb/224071/en-us > > Note that the system databases each have special considerations. > > -- > Geoff N. Hiten > Senior Database Administrator > Microsoft SQL Server MVP > > > > "de Graff" <rjdegr***@hydro.mb.ca> wrote in message > news:uLsVDeHSGHA.196@TK2MSFTNGP10.phx.gbl... >> We are replacing our drive arrays on our production SQL 2000 server. Can >> anyone please tell me what I have to do to relocate the entire store? >> Let's assume that I want to move everything from F:\SQLDATA to >> G:\SQLDATA. Can I >> >> stop SQL server >> xcopy f:\sqldata g:\sqldata /e /i >> point SQL to G:\SQLDATA >> start SQL server >> Life is good >> >> If so, how and where do I reset where SQL looks for the files? in step 3? >> > > We use a vendor program called Misys. Recently we migrated to a larger
server with multiple RAID arrays. The application install puts the program and database files on the same drive. We needed to move the log files and databases to their own drives. I see others proposing methods using SQL, but we found that the following worked well without requiring any SQL programming. 1) Stopped the Misys Server service. 2) Using SQL Server Agent, backed up the database 3) Detached the database 4) Moved the MDF And LDF files to the new locations 5) Re-attached the database. Adjusted the MDF and LDF file locations to the new ones 6) Re-started the service 7) Adjusted (as needed) any SQL Server Agent jobs that backed up and compressed the database -- Regards, Hank Arnold Show quote "de Graff" <rjdegr***@hydro.mb.ca> wrote in message news:uLsVDeHSGHA.196@TK2MSFTNGP10.phx.gbl... > We are replacing our drive arrays on our production SQL 2000 server. Can > anyone please tell me what I have to do to relocate the entire store? > Let's assume that I want to move everything from F:\SQLDATA to G:\SQLDATA. > Can I > > stop SQL server > xcopy f:\sqldata g:\sqldata /e /i > point SQL to G:\SQLDATA > start SQL server > Life is good > > If so, how and where do I reset where SQL looks for the files? in step 3? > |
|||||||||||||||||||||||