Question: what are mdf and ldf files in sql server?
Answer: MDF file is the primary file in SQL server database. The LDF is a supporting file. The latter stores the information related to transaction logs. MDF contains database record data. LDF, on the other hand records information related to changes made in the server as well as all the actions performed.