The Easiest Ways to Open and View an MDF File

Download Article
Step-by-step instructions on opening Microsoft Database Files and Media Descriptor Files
Download Article

There are two types of MDF files: Microsoft Database Files, which can be attached to databases using SQL Server Management Studio, and Media Descriptor Files, which are disk images created by Alcohol 120%. This How.com.vn article teaches you how to open both types of files.

Quick Steps

  1. Open SQL Server Management Studio.
  2. Connect to a server.
  3. Right-click the "Database" folder in the panel to the right.
  4. Click Attach.
  5. Click Add.
  6. Select an MDF file and click Ok.
Method 1
Method 1 of 3:

Using SQL Server Management Studio (Windows)

Download Article
  1. How.com.vn English: Step 1 Open SQL Server Management Studio.
    If your MDF file is a Microsoft Database File, you can open it in SQL Server Management Studio. Look for the icon with a hammer and wrench in the Start menu.
    • This method allows you to attach a Microsoft Database File to a server.
  2. How.com.vn English: Step 2 Connect to a server.
    Select the server type, enter the server name, type your login details, and then click Connect.[1]
    Advertisement
  3. Step 3 Right-click the "Database" folder and select Attach.
  4. How.com.vn English: Step 4 Click Add.
    It's below the window that says "Databases to attach."
  5. How.com.vn English: Step 5 Select an MDF file and click Ok.
    This attaches the MDF file in SQL Server Management Studio. You can now access the database and perform operations.
  6. Advertisement
Method 2
Method 2 of 3:

Using Daemon Tools (Windows)

Download Article
  1. How.com.vn English: Step 1 Download Daemon Tools.
    You can use Daemon Tools to mount Media Descriptor Files (MDF). The full version of Daemon Tools Lite costs $4.99, but you can download the ad-supported Lite version free. You can get Daemon Tools from https://www.daemon-tools.cc/products/dtLite.
    • If you just want to extract the contents of an MDF file, you can do so using WinRAR or 7-zip.
  2. How.com.vn English: Step 2 Install Daemon Tools.
    Once the installer has finished downloading, double-click the installation file and follow the prompts to complete the installation.
  3. How.com.vn English: Step 3 Right-click the MDF file.
    This displays a context menu.
    • If you see the Daemon Tools icon in the menu, select it to open the MDF file.
  4. How.com.vn English: Step 4 Click Open with….
    This displays a list of apps you can use to open the MDF file.
  5. How.com.vn English: Step 5 Select Daemon Tools.
    This mounts the MDF file as a DVD so you can access its contents.
  6. Advertisement
Method 3
Method 3 of 3:

Using Disk Utility on Mac

Download Article
  1. How.com.vn English: Step 1 Open Finder on your Mac icon .
    It's the first icon on the Dock, which is usually at the bottom of the screen.
    • Since neither Daemon Tools nor Alcohol 120% is supported on Mac, you will need to convert the MDF file to an ISO file to mount it.
  2. How.com.vn English: Step 2 Open the folder containing the MDF file.
    The filename ends with the ".mdf" extension.
  3. How.com.vn English: Step 3 Hold Control as you click the MDF file.
    A menu will expand.
  4. How.com.vn English: Step 4 Click Get Info on the menu.
    A panel with information about the file will appear.
  5. Step 5 Click the arrow next to "Name & Extension."
    It's toward the top of the panel. This displays the file name (which ends with .mdf) in a box.
    • If you don't see the ".mdf" part of the file name, remove the checkmark from the "Hide extension" box.
  6. How.com.vn English: Step 6 Replace .mdf with .iso.
    Since these file types are so similar, changing the extension to .iso is all it takes to make the image mountable on your Mac.[2]
  7. How.com.vn English: Step 7 Click the red circle to close the window.
    It's at the top-left corner of the panel.
  8. How.com.vn English: Step 8 Double-click the file you renamed.
    This mounts the file using Disk Utility on your Mac.
  9. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!

      About This Article

      How.com.vn English: Travis Boylls
      Written by:
      How.com.vn Technology Writer
      This article was co-authored by How.com.vn staff writer, Travis Boylls. Travis Boylls is a Technology Writer and Editor for How.com.vn. Travis has experience writing technology-related articles, providing software customer service, and in graphic design. He specializes in Windows, macOS, Android, iOS, and Linux platforms. He studied graphic design at Pikes Peak Community College. This article has been viewed 123,454 times.
      How helpful is this?
      Co-authors: 6
      Updated: April 1, 2024
      Views: 123,454
      Categories: File Manipulation
      Article SummaryX

      1. Install Alcohol Portable.
      2. Drag the MDF file into the app.
      3. Right-click the image.
      4. Click Mount Image File.
      5. Double-click the new folder.

      Did this summary help you?

      Thanks to all authors for creating a page that has been read 123,454 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement