Solved

How to properly move a sql database?

Posted on 2008-06-18
8
192 Views
Last Modified: 2012-08-13
I need to move a sql database to a new hard drive with more space for the db to grow. In SQL 2000 how can I do this?
0
Comment
Question by:MicroAutomation
[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
  • 5
  • 3
8 Comments
 
LVL 60

Expert Comment

by:chapmandew
ID: 21813620
Take a backup of your database (full backup) along with running DBCC CHECKDB on the database.  AFterwards, detach your database and copy the files over to the other server.  Once you've copied them there attach them.  
0
 

Author Comment

by:MicroAutomation
ID: 21815040
WIll any currently setup sql jobs or replication be affected? In other words will I have to tweak all the scheduled jobs and such?
0
 
LVL 60

Expert Comment

by:chapmandew
ID: 21815047
IF it is on the same server then you won't need to change any of that stuff, no.
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 

Author Comment

by:MicroAutomation
ID: 21815077
sweet thanks...i will give a try..
0
 

Author Comment

by:MicroAutomation
ID: 21821852
when trying to detach the database in order to copy the system shows:

attention: the database cannot be detached while it is being replicated
0
 

Author Comment

by:MicroAutomation
ID: 21821941
ok i got the disabling publushing wizard now and when trying to do this it says it could not diable publishing and distribtuion on <server name>

Error 2812: Could not find stored procedure 'master...xp_commandshell'
0
 

Author Comment

by:MicroAutomation
ID: 21822296
i was able to take the database offline and am now coppying it over
0
 
LVL 60

Accepted Solution

by:
chapmandew earned 125 total points
ID: 21823094
Cool...I didn't realize that you were using replication or I'd have mentioned that.  Sorry about that.  
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

763 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