Backup restore or Detach attach to move SQL 2005 database new partition

Posted on 2009-04-24
Last Modified: 2012-05-06
I have to move our sql 2005 to a new partition on the server that i recently added.  It seems everyone favors the detech attach method but I am new with sql2005.  Backing up and then simply restoring to the new directory on new hard drive just sounds simplier.  Expecially since the database has primary and other files.  

Is there any reason NOT to do a backup restore? I mean if the hard drive crashed and I had to get datbase back from tape and put it on a different letter this is exactly what would need to be done...
Question by:Bekster
    LVL 6

    Accepted Solution

    Would work just as well as detach/attach... (don't forget to update the path's for the files if you do a restore)

    Author Comment

    good thats all I want to hear.  When I do the restore I just have to change the drive letter from D to E of the file path.  Sounds simple enough.
    LVL 12

    Expert Comment

    Backup/restore, it's all cool.
    Go with what you can do best. Remember to change drive paths while restoring.
    LVL 75

    Expert Comment

    by:Anthony Perkins
    It may be marginally faster to detach copy and attach over backup/restore, but the big advantage of backup/restore is that you do not have to take the database offline.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    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

    This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
    Read about achieving the basic levels of HRIS security in the workplace.
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    758 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

    10 Experts available now in Live!

    Get 1:1 Help Now