Restore DB with Multiple MDF into new DB with single MDF

  • How can I restore a database with 40 GB and having 3 Data files to a Database that has one MDF and one LDF file.

    Kindest Regards,

    Sameer Raval [Sql Server DBA]
    Geico Insurance
    RavalSameer@hotmail.com

  • It's not directly possible. A database will always restore with the same number of files as it had when it was backed up.

    Once you've restored you can move objects between the filegroups, or do a shrinkfile with empty if all the files are in the same filegroup.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

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

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