what is .mdf file
SQL Server Master Database File (MDF/.mdf) Overview. An MDF (Master Database File) file is the primary database file of Microsoft SQL Server with an extension .mdf, which contains the data as well as schema. We can create more than one data file with .mdf file extension for a database whether it does exist in a filegroup or by generating a new filegroup. Database Files.