How to relocate files ?

  • SQL Server 2000

    The database files are distributed in 2 physical disks (which are assigned to 2 user defined filegroups). My task is to move (merge) data from these files to 1 physical disk (the second disk will be removed). I have tried to alter the file's size and filegrowth to zero, but sql server does not accept it since the size was smaller than the current size.

    Is there a way to move/relocate/merge the database files ? Thanks for any response.

  • In EM right click on the DB - All tasks - Detach Database. Then move the files and attach the files back to the SQL Server using All Tasks - Attach database.

    Regards,

    Andy Jones

    andyj93@hotmail.com

    .

  • Take a look at BOL - DBCC Shrinkfile using the Emptyfile parameter, I think it will be a better solution than detach/attach.

    Andy

    http://www.sqlservercentral.com/columnists/awarren/

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply