Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Upgrade SQL7.0 to SQL7.0 on another machine

Posted on 2000-03-10
3
Medium Priority
?
405 Views
Last Modified: 2008-03-06
We bought a new machine and want to move the SQL7.0 databases on old machine to new powerful machine.
--
The SQL7.0 setup on old machine as followed: DRIVE C: has SQL programs and DRIVE D: has all databases including all system databases.

The SQL7.0 has been installed on new machine as followed;
DRIVE C: has SQL programs ,
DRIVE D: used for other applications, drive E: will host log files only
Drive F: will host data files and all such system databases as master, msdb, model and tempdb.
--
I am able to backup user databases and using RESTORE DATABASE WITH MOVE option to place all user databases to the right locations which is DRIVE F: has data files and E: has log files. BUT for system database master, tempdb, msdb and model database, I am not sure how to do it.
***
One of my friends told me that i can use ALTER DATABASE tempdb MODIFY FILE to do it to relcate the tempdb only.

For msddb database, We tried backup the database and RESTORE DATABASE WITH MOVE OPTION and it works.

I tried to use the same way to move model database or tempdb and always got warning message such as .. can't drop the database because it is a system database.

After a couple of hours trying, I ended up directly edit two systems tables(sysdatabases and sysdevices) in the master databases on the new machine.
---
My new machine is up and running but we have not tested the whole databases yet. Are there any other system tables which i need to edit too? or any other suggestion to deal with my situation with system tables.

p.s.: The way I move over master databas is backing up the master file on old machine then restored back to new machine by using "sqlservr -m" and "osql" to bring up the SQL server normally.
 
0
Comment
Question by:jhuangc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
chigrik earned 330 total points
ID: 2607150
Read about "INF: Moving SQL Server 7.0 Databases to a New Location"
http://support.microsoft.com/support/kb/articles/q224/0/71.asp
0
 

Author Comment

by:jhuangc
ID: 2607884
Adjusted points to 110
0
 

Author Comment

by:jhuangc
ID: 2607885
After reading through the article of the microsoft resolution, I think if you look into two tables(sysdatabases and sysdevices) in the new master database, you will find out the file location of the master is still written as "Drive D:". My concerns is will the entries using "Drive d:" instead of "Drive e:" in sysdatabases and sysdevices tables afffect something in the long run even though SQL runs at this moment. Do I need to go ahead edit the entries in sysdatabases and sysdevices to "Drive E:".

Thansk,

Jimmy
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question