The LDF file for my database is LDF file growing and taking up way too much space! I was told by one DBA that the LDF file should automatically be deleted when a full backup occurs? Is there a way to do this? If not, how can I shrink or delete the LDF file without doing any damage to my database?
My current database size is only 2756 MB, however the LDF file for this database is a monsterous 2.06 GB!!! Something has to be wrong or there must be some setting to eliminate all of this excess.
I appreciate any help/suggestions you may offer in advance.
Thanks,
-Brett
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.
My current database size is only 2756 MB, however the LDF file for this database is a monsterous 2.06 GB!!! Something has to be wrong or there must be some setting to eliminate all of this excess.
I appreciate any help/suggestions you may offer in advance.
Thanks,
-Brett
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.