Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open .mdf and .ldf files?

How to open .mdf and .ldf files ?

These files were created using SQL 2005. I just installed SQL 2008.

I am unable to open this file. What am I am missing here ?

like image 935
Failed_Noob Avatar asked May 08 '11 13:05

Failed_Noob


2 Answers

You should be able to just attached the mdf file using SQL Server Mgmt Studio. See this link http://www.packtpub.com/article/moving-a-database-from-sql-server-2005-to-sql-server-2008-in-three-steps

like image 161
Fadrian Sudaman Avatar answered Sep 29 '22 15:09

Fadrian Sudaman


You probably just want to attach these and you can do that through SSMS.

However, if you really want to “read” these note that there is no default way to do so but there are some workarounds you can try.

Reading .ldf file is only possible using third party tools such as ApexSQL Log.

There is also SQL Log Rescue which is free but only for SQL Server 2000.

Take a look at these thread for more details on this (if this is what you were after)

Read the log file (*.LDF) in sql server 2008

SQL Server Transaction Log Explorer/Analyzer

like image 25
JdMR Avatar answered Sep 29 '22 14:09

JdMR