If you cannot access the MDF file, your file may be damaged. To fix this problem, you need to repair corrupted MDF file and then easily access it in the SQL Server database.