Alex Rivera | Logout

What is an MDF file?

Asked 2009-07-24T05:41:44.993
157

Is this like an “embedded” database of sorts? A file containing a built in database?

Edit
Report

1 Answer

60

Just to make this absolutely clear for all:

A .MDF file is “typically” a SQL Server data file however it is important to note that it does NOT have to be.

This is because .MDF is nothing more than a recommended/preferred notation but the extension itself does not actually dictate the file type.

To illustrate this, if someone wanted to create their primary data file with an extension of .gbn they could go ahead and do so without issue.

To qualify the preferred naming conventions:

  • .mdf - Primary database data file.
  • .ndf - Other database data files i.e. non Primary.
  • .ldf - Log data file.
answered 2009-07-24T08:13:05.000

Your Answer