Categories About Us Contact Us Become a Member

What is an MDF File? The SQL Server Primary Data File and How to Open It

MDF files hold SQL Server databases as primary data files. Attach one to an instance to open it. Jump to your question below or work through it in order.

By Neeraj Singh ~20 min Updated Nov 2026 Checked against Microsoft Learn SQL Server documentation
Short answer

MDF files are the primary data files of Microsoft SQL Server databases. Every database has exactly one. The file holds startup details and points to the other files in the database.

What sets an MDF file apart is the team around it. NDF files add optional data space and LDF files hold the transaction log. SQL Server needs all data files and sometimes the log file to attach a database. Moving an MDF file alone can fail.

Attach the MDF file to a SQL Server instance and browse it in SQL Server Management Studio. Section 4 gives the steps.

1 What is an MDF File? The SQL Server Primary Data File, Explained Plainly

Open the data folder of a SQL Server instance and you find files that end in .mdf beside files that end in .ldf. Microsoft's attach guide shows one at C:\Program Files\Microsoft SQL Server\MSSQL16.MSSQLSERVER\MSSQL\DATA\AdventureWorks2022_Data.mdf.

Microsoft Learn calls an MDF file the primary data file. Every database has exactly one. The MDF file holds startup details for the database and points to the other files in it.

Data files hold tables, indexes, stored procedures and views. Log files hold what SQL Server needs to recover transactions.

Some references expand the letters as Master Database File. Wikipedia's MDF page lists that name. Microsoft's own pages say primary data file and name .mdf as the recommended extension.

Another program uses the same three letters. Alcohol 120% saves disc images as MDF files. Section 10 shows how to tell the two apart.

Every SQL Server database has one MDF file. That MDF file holds startup details and points to the rest of the set. You open it by attaching it to a SQL Server instance.

MDF file at a glance

MDF file at a glance
MDF file extension
.mdf
Microsoft name
Primary data file
Made by
The SQL Server Database Engine
What it holds
Startup details and pointers to the other files
Per database
Exactly one MDF file
Companion files
.ndf secondary data and .ldf transaction log
Page size
8 KiB
Extent size
64 KiB, eight pages
Page numbering
From 0 to n
Opens with
A SQL Server instance through attach
Express size limit
10 GB per the SQL Server 2022 edition table
Same extension, other meaning
Alcohol 120% disc images

Found the file next to an MDS file? That points to a disc image and not a database. Read about ISO files for the general idea and see section 10.

MDF files start the database and point to the rest. NDF files add optional data space and LDF files hold the log. Microsoft calls all three extensions recommended.

2 How do MDF, NDF and LDF Files Differ? One Database, Three Jobs, One Set of Files

Three extensions share one database. MDF files start it and NDF files extend it. LDF files record changes so SQL Server can recover.

The three SQL Server file types, with the recommended extension and Microsoft's description.
FileExtensionWhat Microsoft says it doesHow many
Primary data file.mdfContains startup details for the database and points to the other filesExactly one
Secondary data file.ndfOptional user defined data files that can sit on different disksOptional
Transaction log.ldfHolds information used to recover the databaseAt least one

The table follows the database files and filegroups page, which calls all three extensions recommended. Most databases work well with one data file and one log file, says the same page.

A diagram of one SQL Server database drawn as a large box with three parts inside. The first part is the PRIMARY filegroup. It holds the one primary data file with the .mdf extension and any secondary data files with the .ndf extension that are not assigned to another filegroup. The second part is a user defined filegroup that holds only .ndf secondary data files. The third part sits outside all filegroups and holds the transaction log files with the .ldf extension. A note says transaction log files are never part of any filegroup and a database needs at least one.
One database, three kinds of file. The log sits outside every filegroup.

Filegroups in plain words

A filegroup gathers data files for administration and placement. The PRIMARY filegroup holds the primary data file and all secondary files you leave unassigned.

A file belongs to one filegroup and one database only. Transaction log files never join a filegroup.

Logical names and file names

SQL Server gives every file two names. The logical name appears in SQL statements and must be unique inside the database. The operating system name is the path you see in File Explorer.

Databases that use FILESTREAM add folders of unstructured data. Those folders must be present and available when you attach the database.

Database snapshots store their data in sparse files. SQL Server cannot detach or attach a snapshot, per the detach and attach guide.

Keep the set together. Copy the MDF file with all NDF files and LDF files from the same database. Attach needs all the data files.

Attach the MDF file to a SQL Server instance and browse it in SQL Server Management Studio. Attach is the documented route.

3 How do I Open an MDF File? Attach It, Then Query It in SSMS

An MDF file needs a SQL Server instance behind it. The instance reads the pages of the MDF file and shows you tables.

Microsoft documents attach as the way to bring an MDF file into an instance. Three routes lead there. Start with the SSMS dialog if you attach one file once.

Three routes to the data

Ways to open an MDF file, with what Microsoft documents for the three routes.
RouteBest forWhat to know
SSMS Attach dialogOne look at one databaseRight click Databases, select Attach and add the MDF file
CREATE DATABASE FOR ATTACHScripts and repeat workNeeds a FILENAME entry for the primary file
LocalDB with AttachDbFileNameDevelopers on one PCThe connection string names the MDF file. One LocalDB instance opens a file at a time

Older guides use sp_attach_db. Microsoft says that procedure will be removed in a future version and recommends CREATE DATABASE ... FOR ATTACH instead, per the attach a database page.

How to open an MDF file with SSMS

1 Install SQL Server to host the MDF file. SQL Server Express is free to download according to Wikipedia. LocalDB also works for a quick look.
2 Install SQL Server Management Studio. Microsoft's SSMS download page lists SSMS 22, which works with SQL Server 2014 and later. The installer needs administrator rights on Windows.
3 Copy the MDF file and its LDF file to a folder that the service can read. The Database Engine service account needs permission to read the files in their new location.
4 Attach the MDF file. Section 4 lists the clicks and the T-SQL statement.
5 Expand the database in Object Explorer. The MDF file now answers SELECT statements in a new query window.

LocalDB users can skip the dialog. The connection string Server=(LocalDB)\MSSQLLocalDB;Integrated Security=true;AttachDbFileName=D:\Data\MyDB1.mdf comes straight from the LocalDB page.

The first LocalDB connection can time out while Windows creates the automatic instance. Wait a few seconds and connect again.

Trust the source first. Microsoft recommends you do not attach databases from unknown sources. Check one on a nonproduction server with DBCC CHECKDB and read its code before you attach it anywhere real.

Right click Databases in Object Explorer, select Attach and add the MDF file. Detach the database from any other instance first or the attach returns an error.

4 How do I Attach an MDF File to SQL Server? SSMS Clicks, One Statement and the Missing Log Fork

Attach plugs an MDF file and its partner files into an instance. You need CREATE DATABASE, CREATE ANY DATABASE or ALTER ANY DATABASE permission.

How to attach an MDF file in SSMS

1 Connect to the instance. Open Object Explorer, connect to the Database Engine and expand the server.
2 Open the Attach dialog. Right click Databases and select Attach.
3 Select Add. The Locate Database Files window opens. Browse to your MDF file and select it.
4 Check the grid. SSMS fills in the Databases to attach grid from the MDF file. Change Attach As or Owner for a new name or owner.
5 Select OK. Selecting a database that is already attached produces an error.

The same job takes one statement. Add a FILENAME entry for the MDF file and one for the LDF file.

CREATE DATABASE MyAdventureWorks ON (FILENAME = 'C:\MySQLServer\AdventureWorks_Data.mdf'), (FILENAME = 'C:\MySQLServer\AdventureWorks_Log.ldf') FOR ATTACH;

Databases with extra data files or FILESTREAM filegroups need those files listed too. The CREATE DATABASE page holds the full syntax.

What happens when the log file is missing

Attach looks for the log file at its old path unless you name a new one. If the log is gone and the shutdown was clean, attach can build a new log for a read write database.

A decision tree for attaching an MDF file when the log file is missing. The first question asks whether the database is read only. If yes, the log files must be supplied because SQL Server cannot build a new log for a read only database. If no, the second question asks whether the database shut down cleanly. If yes, FOR ATTACH_REBUILD_LOG builds a new log file of 1 MB in the default log location and the log backup chain breaks, so take a full backup straight away. If no, attach cannot build a log and you must find the original log files.
Missing log file? Read only status and a clean shutdown decide what happens.

FOR ATTACH_REBUILD_LOG works for read write databases that shut down cleanly with all data files present. It creates a new 1 MB log in the default log location.

That option breaks the log backup chain. Microsoft recommends a full database backup right after.

Keep every detached log file until the MDF file attaches without them. Some attaches need the existing logs.

Why an attach fails

A data file is missing Every MDF file and NDF file must be available. A changed path needs the new path in the grid.
The database is still attached elsewhere Detach it from the other instance first. An attach of a database that was not detached returns an error.
The server is older A database from a newer SQL Server cannot attach to an earlier one. Error 948 says a downgrade path is not supported.
The service account cannot read the folder Section 6 covers permissions and the error 5120 message.

After an attach the database keeps its compatibility level unless the old level is gone. Microsoft's example moves a level 90 database to SQL Server 2019 and lands on level 100.

Detach the database in SSMS for a move between servers. Use the ALTER DATABASE relocation steps for a move inside one instance.

5 How do I Detach or Move an MDF File Safely? Detach for Servers, ALTER DATABASE for Folders

Detach removes a user database from an instance. Plan for a short outage. The MDF file and its partners stay on disk and you can attach them again or move them to a server with the same or a newer version.

Microsoft recommends the planned relocation procedure for moves inside one instance. Detach and attach suit moves between instances.

How to detach a database in SSMS

1 Note the file locations first. Right click the database and select Properties then Files. Or query sys.database_files for type, name and physical path.
2 Open the Detach window. Right click the database in Object Explorer and point to Tasks. Select Detach.
3 Set the options. Drop Connections disconnects users. Update Statistics refreshes out of date optimizer statistics.
4 Check the status. Status reads Ready or Not ready. Not ready means active connections or replication.
5 Select OK and refresh. The database stays on screen until you select View then Refresh.

You need membership in the db_owner fixed database role to detach.

When detach refuses

Replication A replicated and published database must be unpublished first.
A snapshot exists Drop every snapshot on the database before you detach it.
Always On or mirroring Remove the database from the availability group or end the mirroring session.
The database is suspect Put it into emergency mode first.
A system database SQL Server cannot detach a system database.

Those limits come from the detach and attach guide.

Planned relocation inside one instance

1 Point the file to its new path. Use ALTER DATABASE with MODIFY FILE and the logical name of every file.
2 Take the database offline. The command needs exclusive access. Add WITH ROLLBACK IMMEDIATE to close open connections.
3 Move the MDF file. Copy the MDF file and the LDF file to the new folder in Windows.
4 Bring the database online. Use ALTER DATABASE database_name SET ONLINE.
5 Verify the paths. Query sys.master_files and compare the MDF file path with your plan.

Detach is not a backup. Microsoft says detached copies carry no transaction log backups and no point in time recovery.

Error 32 means another process holds the MDF file. Error 5 and SQL Server error 5120 mean the account lacks permission. Fix the cause that the number names.

6 Why is My MDF File Locked or Access Denied? Error 32, Error 5 and Error 5120 Decoded

Two numbers explain most locked file messages. Windows error 32 means another process holds the file. Windows error 5 means the account has no permission.

SQL Server wraps both inside error 5120. The message starts Unable to open the physical file and ends with the operating system error number. That number names the real cause, per the error 5120 page.

Causes of a locked MDF file

Another process holds the MDF file Windows error 32 reads "The process cannot access the file because it is being used by another process." See the Windows error code list. The instance that has the database attached is the first suspect.
The service account lacks permission SQL Server uses Windows groups with names like SQLServerMSSQLUser$ComputerName$MSSQLSERVER. The group must include the service startup account or service SID.
The MDF file sits on a network path CREATE DATABASE lists the local server, a SAN or an iSCSI based network as valid homes. The error 5120 page adds a trace flag 1802 procedure for network attached storage.
The path holds \\?\GlobalRoot Attach fails when MDF and LDF files sit in different folders and one path includes that text.
The folder uses NTFS compression Read write data files and log files are not supported on a compressed NTFS file system.

How to find the lock

1 Read the operating system error number. Error 32 points to a lock. Error 5 points to permissions.
2 Find the account that starts SQL Server. Open Task Manager and find sqlservr.exe. The User Name column shows the service account.
3 Check MDF file permissions. Open the file Properties in File Explorer. Compare the Security list with the Windows group that SQL Server uses.
4 Release the MDF file for copying. Detach the database or take it offline first. Section 5 gives both routes.
5 Watch the file with Process Monitor. Microsoft suggests the tool to see which account touches the file during an attach or restore.

If you changed the service account by hand, change it back through SQL Server Configuration Manager. Microsoft names that the supported way.

Attach sets file permissions. After an attach the service account and local Administrators group hold rights to the files when the connecting account can be impersonated. Otherwise the service account alone holds them.

Offline means a person took the database offline. Recovery pending and suspect mean startup recovery stopped. Check state_desc in sys.databases before you act.

7 Why is My Database Offline, Suspect or Recovery Pending? Seven States and the Next Move for Every One

SQL Server keeps every database in one state at a time. Check yours with SELECT name, state_desc FROM sys.databases; before you change anything.

Database states as Microsoft defines them, with the next step to take.
StateMeaningYour next step
ONLINEThe database is available and the primary filegroup is onlineNothing to fix
OFFLINEA user took it offline and it stays offline until a user actsUse ALTER DATABASE database_name SET ONLINE
RESTORINGFiles of the primary filegroup are being restoredFinish the restore sequence
RECOVERINGSQL Server is recovering it. The state is transientWait. Success sets it online and failure sets it suspect
RECOVERY PENDINGSQL Server hit a resource related error. Nothing is damagedFind the missing files or the resource limit
SUSPECTAt least the primary filegroup is suspect and could be damagedGo to section 8
EMERGENCYA user set it. The database is single user and read onlyUse it for troubleshooting only
A flow diagram of database states. Startup puts the database into the RECOVERING state. If recovery succeeds the database becomes ONLINE. If recovery fails it becomes SUSPECT. A resource related error during recovery leads to RECOVERY PENDING, where the database is not damaged and the files could be missing. A user can take an ONLINE database to OFFLINE and back with ALTER DATABASE. A member of the sysadmin role can set a SUSPECT database to EMERGENCY, which is single user and read only with logging disabled.
How a database lands in every state. Only users reach OFFLINE and EMERGENCY.

Recovery pending does not mean damage. Microsoft says the files could be missing or system resources could be blocking the start.

Only sysadmin members can set EMERGENCY. The state marks it read only, disables logging and limits access to sysadmin members. Microsoft describes it as a troubleshooting state.

How to bring a database back

1 Query the state. Read state_desc for the database in sys.databases.
2 Handle OFFLINE. Use ALTER DATABASE database_name SET ONLINE. Someone took it offline on purpose.
3 Handle RECOVERY PENDING. Query sys.master_files for the physical names. Confirm all files exist at that path and the service account can read it.
4 Handle SUSPECT. Follow section 8. Restore from backup before any repair.
5 Query the state again. Confirm the database reads ONLINE and test a query.

Restore the last known good backup before you try any repair. REPAIR_ALLOW_DATA_LOSS is an emergency last resort and can lose more data than a restore.

8 What if My MDF File is Corrupt? Backup First, DBCC CHECKDB Second, Repair Last

Restore the last known good backup before you repair an MDF file. Microsoft names a backup restore as the primary method for errors that DBCC CHECKDB reports.

The repair options sit behind that advice. Microsoft calls REPAIR_ALLOW_DATA_LOSS an emergency last resort for cases where no backup exists. The DBCC CHECKDB page holds every option.

The repair options compared

DBCC CHECKDB repair options and what Microsoft says about them.
OptionWhat it doesCatch
REPAIR_REBUILDRepairs with no possibility of data loss, from missing index rows to index rebuildsDoes not repair FILESTREAM errors
REPAIR_ALLOW_DATA_LOSSTries to repair all reported errorsCan deallocate rows or pages and lose more than a restore would
REPAIR_FASTKeeps old syntax workingPerforms no repair actions

A safe order of work

1 Copy the MDF file and its LDF file. Keep an untouched copy before any repair. Repairs change the MDF file.
2 Check the MDF file. Use DBCC CHECKDB WITH NO_INFOMSGS;. You need the sysadmin or db_owner role.
3 Restore from backup. Microsoft recommends this over any REPAIR option when errors appear.
4 Try REPAIR_REBUILD if no backup exists. Single user mode is required. Start a transaction first so you can roll back.
5 Use REPAIR_ALLOW_DATA_LOSS last. For a database set to emergency mode the option can bring it online in a physically consistent state.
6 Check your data afterward. The repair does not check foreign key constraints. Referential integrity can be wrong.

Emergency mode adds one rule. You cannot start DBCC CHECKDB there inside a user transaction and then roll it back.

Outlook files are a different job. Corrupt mail stores need their own tools. See Outlook PST files and Outlook OST files for those formats.

User database files sit in the data folder you or the instance chose. System databases use names like master.mdf and tempdb.mdf. Query sys.master_files for exact paths.

9 Where are MDF Files Stored? System Names, Default Folders and the Size Ceiling

Every instance keeps system databases beside your own. Their MDF files follow fixed names you can spot in the data folder.

Where common MDF files live, from Microsoft Learn.
DatabaseFile namesWhat to know
mastermaster.mdf and mastlog.ldfSQL Server cannot start if master is unavailable. Keep a current backup
tempdbtempdb.mdf, tempdb_mssql_#.ndf and templog.ldfSQL Server re-creates it at every start. Backup and restore are not allowed
Your databaseA name you set, like AdventureWorks2022_Data.mdfSits in the default data folder unless you chose another path
LocalDBFiles under %LOCALAPPDATA%\Microsoft\Microsoft SQL Server Local DB\InstancesSystem files live there and user files sit where the user designates

The master database page and the tempdb page list those names. Both pages point to Move System Databases for relocation.

Your paths will differ. Trust the query and not the example.

The default path comes from the registry. Change it in Server Properties on the Database Settings page and restart SQL Server.

System databases cannot live on UNC share directories, per the system databases page.

Find every MDF file on your instance

1 Open a query window. Connect to the instance in SSMS and select New Query.
2 Query the catalog. Use SELECT name, physical_name FROM sys.master_files; for every file the instance knows.
3 Filter for one database. Add WHERE database_id = DB_ID('master') and swap in your database name.

How big can an MDF file get

The SQL Server 2022 edition table lists 10 GB for Express as the maximum relational database size. Standard and Enterprise list 524 PB.

An MDF file can grow on its own from the size you set. Without a maximum the MDF file keeps growing until the disk is full.

An MDF file that came from a disc or sits next to an MDS file is a disc image. An MDF file beside LDF files is a SQL Server database.

10 Is My MDF File an Alcohol 120% Disc Image? Three Clues That Settle It in a Minute

The same three letters name a second kind of MDF file. Wikipedia describes the Media Descriptor File as a proprietary disc image format developed for Alcohol 120%.

Alcohol 120% can add an optional MDS companion that stores layer data. The MDF file holds the raw disc copy, including multiple layers and tracks.

Clues that separate the two kinds of MDF file.
ClueSQL Server MDF fileAlcohol 120% MDF file
Where it came fromA SQL Server data folder or a copy of oneA disc copy or a download of a disc
Companion file.ldf and sometimes .ndfAn optional .mds file
What it holdsDatabase pages of 8 KiBA copy of a disc
How you use itAttach it to SQL ServerOpen it with disc image software

SQL Server cannot attach a disc image because the file holds a disc and not data files.

Learn how disc images work in general from the ISO file page.

An MDF file is a series of 8 KiB pages numbered from 0, grouped into 64 KiB extents. Pages 1 to 3 hold allocation maps that repeat at fixed intervals.

11 MDF File Format and Structure Pages, Extents and the Version Rule

Numbers in this section come from Microsoft Learn pages named beside them.

MDF file specification

MDF file specification
Recommended extension
.mdf
Microsoft name
Primary data file
Role
Startup details and pointers to the other files
Per database
One primary data file
Page size
8 KiB
Page header
96 bytes
Extent
Eight contiguous pages, 64 KiB
Page numbers
0 to n, in sequence
Largest in row record
8,060 bytes
With sparse columns
8,018 bytes
First PFS page
Page 1
GAM and SGAM pages
Pages 2 and 3
GAM interval
About 64,000 extents or 4 GiB
Extent allocation
Uniform extents since SQL Server 2016

Pages and extents

SQL Server divides the disk space of an MDF file into pages numbered from 0. Pages measure 8 KiB and start with a 96 byte header. Eight pages make a 64 KiB extent.

A diagram of an 8 KiB page and the start of an MDF file. The top row shows one page split into a 96 byte header and the remaining space for rows and the slot array. The bottom row shows pages in order from the start of the file. Page 1 is the PFS page. Page 2 is the GAM page. Page 3 is the SGAM page. Data pages follow. A new PFS page repeats at an interval of 8,088 pages, and a new GAM and SGAM pair repeats every GAM interval of about 64,000 extents or about 4 GiB. A note says the row is not drawn to scale.
One page above and the first pages of a file below. Not to scale.

Allocation pages track free space. A PFS page sits at page 1. A GAM page and an SGAM page sit at pages 2 and 3 and repeat for a GAM interval of about 64,000 extents.

A new PFS page follows every 8,088 pages. Read the pages and extents guide for the full list of page types.

Upgrades and versions

Attach upgrades the database to the internal version of the new instance. The compatibility level stays put unless the old level is no longer supported.

The way back is closed. Error 948 reads "A downgrade path is not supported" in its message, as the error 948 page shows.

What people get wrong about MDF files

An MDF file is not the full database. NDF files and log files belong to the set. Attach needs all the data files.

An MDF file is not a backup either. Detached copies carry no log backups and no point in time recovery.

Other store files that look similar

Mail systems keep their data in store files of their own. See EDB files for the Exchange mailbox database and PST files for Outlook local storage.

OST files hold the offline copy of a mailbox and OLK files hold Outlook for Mac items. MBOX files keep a mailbox in one text file. The Exchange Server page and the Microsoft Outlook page cover the programs.

Single item files work differently from stores. EML files hold one message and VCF files hold contacts. ICS files hold calendar events.

Where these MDF file facts come from

Microsoft Learn supplies the file types, attach rules, states and page numbers. Wikipedia's SQL Server article and its Management Studio article give general background.

The format index lists all FileFix format guides. The file format guide explains how extensions work and the what is hub covers neighboring topics.

Frequently Asked Questions About MDF Files

What is an MDF file?
An MDF file is the primary data file of a SQL Server database. Every database has exactly one. The file holds startup details and points to the other files in the database. Data files also hold tables, indexes, stored procedures and views.
How do I open an MDF file?
Attach the MDF file to a SQL Server instance and browse it in SQL Server Management Studio. Right click Databases and select Attach. Add the MDF file and select OK. LocalDB can attach a file through a connection string that names the MDF file.
What is the difference between MDF and LDF files?
An MDF file holds startup details and data. An LDF file holds the transaction log that SQL Server uses to recover the database. Every database has one MDF file and at least one LDF file. NDF files add optional data space.
Can I attach an MDF file without the LDF file?
Sometimes. An MDF file from a read write database that shut down cleanly can get a new log file when you attach. The option FOR ATTACH_REBUILD_LOG builds a new 1 MB log file. A read only database needs its original log files.
Why does SQL Server say access is denied when I attach an MDF file?
The SQL Server service account cannot read the MDF file. Error 5120 carries a Windows error number and number 5 means access is denied. Add the service account to the Windows group that holds rights to the file. Microsoft also lists attach file permissions on its attach page.
Can I open an MDF file without SQL Server?
Microsoft documents attach as the route into an MDF file. SQL Server Express is free to download and LocalDB suits quick work on one PC. Both give you an instance without a full server. You still attach the file.
What does a suspect or recovery pending database mean?
Recovery pending means SQL Server hit a resource related error and the database is not damaged. Files could be missing. Suspect means at least the primary filegroup could be damaged. Restore from backup before you try a repair.
How big can an MDF file get?
The SQL Server 2022 edition table lists 10 GB for Express and 524 PB for Standard and Enterprise. An MDF file grows from its set size until it reaches its maximum or fills the disk. Set a maximum size if you want a ceiling.
Where is the MDF file for my database?
Query sys.master_files and read the physical_name column to find the MDF file. User databases sit in the default data folder unless you chose another path. System databases use names like master.mdf and tempdb.mdf. LocalDB keeps its system database files under your AppData folder.
Can I attach an MDF file from a newer SQL Server to an older one?
No. An MDF file from a newer version cannot attach in earlier versions. Error 948 reports that a downgrade path is not supported. Attach the MDF file on a server with the same version or a later one.
Is detach and attach a good way to backup a database?
No. Microsoft does not recommend it for backup and recovery. Detached copies of an MDF file carry no transaction log backups and no point in time recovery. Use real backups for protection.
Is an MDF file the same as an Alcohol 120% image?
No. The two formats share the letters and nothing else. Alcohol 120% saves a disc copy as an MDF file and can add an MDS companion. SQL Server cannot attach that MDF file.

Still Stuck With an MDF File? Six Routes Out, Depending on Your File

Is it a database file?

Attach it. Section 4 lists the clicks and the statement.

Did it come from a disc?

Check the companion file. Section 10 tells the two formats apart.

Does your MDF file come with an MDS file or from a disc? The ISO file guide explains disc images in general.

Is the file an Exchange database and not a SQL Server one? Read the Exchange EDB guide for the mailbox store.

Does Outlook refuse to open your mail file? The PST guide covers local storage and the OST guide covers the offline copy.

Did the file come from Outlook for Mac or from Thunderbird? See the Outlook for Mac OLK guide and the MBOX guide.

Do you need the idea behind extensions first? File format basics start from zero.

Does the trouble sit with your computer and not the file? Browse the Windows fixes or the Mac fixes. Still unsure? Send us the file details and we will look.

Was this page helpful? Thanks for your feedback!