Link to home
Start Free TrialLog in
Avatar of MicroAutomation
MicroAutomation

asked on

How to properly move a sql database?

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?
Avatar of chapmandew
chapmandew
Flag of United States of America image

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.  
Avatar of MicroAutomation
MicroAutomation

ASKER

WIll any currently setup sql jobs or replication be affected? In other words will I have to tweak all the scheduled jobs and such?
IF it is on the same server then you won't need to change any of that stuff, no.
sweet thanks...i will give a try..
when trying to detach the database in order to copy the system shows:

attention: the database cannot be detached while it is being replicated
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'
i was able to take the database offline and am now coppying it over
ASKER CERTIFIED SOLUTION
Avatar of chapmandew
chapmandew
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial