What is the LDF file in SQL Server? -
What is the LDF file in SQL Server? What is its purpose?
Can I safely remove it? Or reducing its size because sometimes the database file is 10x larger than MDF.
You have a very common problem set to complete database recovery mode and then backup Forget about the transfer log (LDF file). Let me tell you how to fix it.
- If your business can lose some data during backup, just set the database recovery mode to simplify, then forget about LDF - it will be small for most cases The recommended solution is
- If you need to be able to restore the precise point over time - Use full recovery mode. In this case you will have to back up the regular transaction log The easiest way to do this is to use a tool such as SqlBackupAndFTP The log file will be truncated at this time and will not move beyond some boundaries.
I look for you to see the best explanation.
Some suggest you to use SHRINKFILE to log in. Note that this is okay as an exception. If you do it regularly, then it destroys the purpose of the full recovery model: First you are in the trouble of saving every change in the log, then you dump it, instead the recovery mode is set in Simi Please.
Comments
Post a Comment