Recovering lost SQL Server 2000 data
0
Q:
Recovering lost SQL Server 2000 data
I lost a LDF file for SQL server 2000 -- but I have the MDF. How can I recover my data?
ASKED: Aug 3 2009  6:47 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
46765 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
If the MDF isn't damaged you should be able to attach the MDF without the LDF using the sp_attach_single_file_db system stored procedure. This will generate a new log file when it attaches the database.

If this works without issue run a DBCC CHECKDB to ensure that there aren't any problems with the database.

Keep in mind that you may have transactions that were in-flight and half committed which will remain in that state as the database can't rollback the transaction without the log.
Last Answered: Aug 3 2009  7:40 PM GMT by Mrdenny   46765 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



0