Link to home
Start Free TrialLog in
Avatar of JackW9653
JackW9653Flag for United States of America

asked on

Migrate .ndf into .mdf

Hello Experts,
Is there a way to migrate an .ndf file back into the .mdf. They are both in the same filegroup of course, and I rememeber reading somewhere this could be done. Any assistance is greatly appreciated even if its to tell me that it can't be done.
Thanks,

JackW
ASKER CERTIFIED SOLUTION
Avatar of binarykuki
binarykuki
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Search BOL for DBCC SHRINKFILE
Avatar of JackW9653

ASKER

Thanks Kuki for your reply,  after a closer examination of the database there are 3 filegroups. One is the Primary and the other 2 match the names of the .ndf files. I rewrote my restore script using With Recovery, Replace and specified the .ndf files using MOVE TO and that worked to get all the tables so i can view them.

Thanks again for your solution, that was the method I was trying to remember.