Solved

How to properly move a sql database?

Posted on 2008-06-18
8
188 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
  • 5
  • 3
8 Comments
 
LVL 60

Expert Comment

by:chapmandew
Comment Utility
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
Comment Utility
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
Comment Utility
IF it is on the same server then you won't need to change any of that stuff, no.
0
 

Author Comment

by:MicroAutomation
Comment Utility
sweet thanks...i will give a try..
0
Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

 

Author Comment

by:MicroAutomation
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Cool...I didn't realize that you were using replication or I'd have mentioned that.  Sorry about that.  
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction This article will provide a solution for an error that might occur installing a new SQL 2005 64-bit cluster. This article will assume that you are fully prepared to complete the installation and describes the error as it occurred durin…
In this article I will describe the Backup & Restore 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.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now