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?
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.
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.
ASKER
sweet thanks...i will give a try..
ASKER
when trying to detach the database in order to copy the system shows:
attention: the database cannot be detached while it is being replicated
attention: the database cannot be detached while it is being replicated
ASKER
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'
Error 2812: Could not find stored procedure 'master...xp_commandshell'
ASKER
i was able to take the database offline and am now coppying it over
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.