Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Join Separate MDF Files Into One
Message
From
15/07/2003 08:56:28
 
General information
Forum:
Microsoft SQL Server
Category:
Database management
Miscellaneous
Thread ID:
00810156
Message ID:
00810160
Views:
16
I don't know of anyway to do this using the RESTORE command but after you restore all of the files, you can probably use DBCC SHRINKFILE() with the EMPTYFILE option to force SQL Server to move all of the data off of the extra file. Then you should be able to remove the file.

-Mike

>Hi!
>
>I've created a database with multiple files (2 mdf's) and therefore multiple log files (2 ldf's).
>
>I need to restore that database into one file ( 1 mdf and 1 ldf ).
>
>How can I achieve this?
>
>Thanks in advance!
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform