Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Whats the exact use of .ldf files?

Status
Not open for further replies.

anilkutty

Programmer
May 30, 2002
12
0
0
GB
Whats the exact use of .ldf files? If we have the back up
of .mdf file, we ca attach it any time, so why do we need
the log files?

Also which option to choose for recovery?
Full, Simple or Bulk-Logged, in SQL Server 2000
 
The LDF file is your log file. if you do a detach of the DB and then re-attach it, it will use the LDF that is there. If you detach the DB, and delete the associated LDF, re-attaching the DB will then create a new "EMPTY" LDF. if you have backed up your database before the detach, there is no problem on deleting the LDF.
Thanks

J. Kusch
 
The recovery model you choose will depend on the frequency of updates, how critical your data is, whether you require point-in-time recovery, etc. There is no single correct choice. You need to read about the recovery models and learn about disaster planning, backup and restore, etc.

Check out faq183-1784 - "How Do I Develop a Backup and Restore Strategy?" for more info and some helpful links.
Terry L. Broadbent - DBA
Computing Links:
faq183-874 contains "Suggestions for Getting Quick and Appropriate Answers" to your questions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top