How to restore multiple mdf files to a single mdf?
说明
How to restore multiple mdf database files to a single mdf file.
解决办法
If the backup file was created with 1 mdf and 1 ldf, additional data/log files cannot be created during the restore process (this is a limitation of SQL Server).
In the example below, the source database has 1 mdf, 1 ndf and 1 ldf -- the destination database has 1 mdf and 1 ldf file. After executing, the source has 3 files and the destination also has 3 files. Note: The REPLACE parameter is required.