Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Move Database Store
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?



Report this thread to moderator Post Follow-up to this message
Old Post
de Graff
03-16-06 01:24 AM


Re: Move Database Store
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" <rjdegraff@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?
>



Report this thread to moderator Post Follow-up to this message
Old Post
Geoff N. Hiten
03-16-06 01:24 AM


Re: Move Database Store
Exactly what I was looking for. Thanks.

"Geoff N. Hiten" <SQLCraftsman@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" <rjdegraff@hydro.mb.ca> wrote in message
> news:uLsVDeHSGHA.196@TK2MSFTNGP10.phx.gbl... 
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
de Graff
03-16-06 12:29 PM


Re: Move Database Store
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

"de Graff" <rjdegraff@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?
>



Report this thread to moderator Post Follow-up to this message
Old Post
Hank Arnold
03-16-06 12:29 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server Tools archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 10:37 AM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006