Question: how to export data from mdf file?
Answer: Open SQL Server Object Explorer.
Select the database you want to export from the list and right-click to select Tasks >> Export Data.