Question: how to export data from sql server to mdf?
Answer: mdf and . ldf) are saved on your system. Just copy them to other places through pendrive or email or any other way to export the database to destination system. Sixth, Open your SQL Server Management Studio 2014 of destination system, here right click on Databases folder and select Attach option.