Databases saved in Comma Separated Value files (.csv) can be usually exported to database management programs to import the data, it can even be done with some spreadsheet programs like Excel. Some dedicated database translation and conversion programs like the Full Convert Enterprise might also be option for the purpose of csv to mdf conversion.
Open CSV file Open MDF fileA powerful database to database converter