I have done a delete operation on a table with many records, so my log file grew from 15 GB to 58 GB. At some point I canceled the execution of delete query because my hdd was running out of space. I have seen here how to delete this big amount of data. My question is how could I reduce the size of log file back to 15 GB?
How could I reduce the size of log file?
1.3k Views Asked by Ionut At
1
There are 1 best solutions below
Related Questions in SQL-DELETE
- Delete trigger run for each deleted row when delete multi row on edit tab
- Delete rows from a parent table without affecting the condition table
- Deleting rows found with left join on SQL
- Asking for advice on debugging a not-working JPA delete call
- Can't display in index.php my data table when items are deleted
- AFTER DELETE trigger fires only if a DELETE is executed on a db query but not on EF Core
- PostgreSQL doesn't take into account a DELETE in WITH before the request has ended
- Why Postgres does not delete rows if one of the columns is NULL when USING/IN/EXISTS is used?
- SQL Delete Statement taking a long time to run (oracle)
- Deleting data from MySQL table periodically
- How to assign the deleted data of an in-memory table to a variable?
- Delete the single existing record in table OR delete all records except latest?
- Apex checkbox to select and delete raws in interactive report
- Prisma model error, provider mysql using nextjs
- Error in delete request with nextjs 14, got an error on execution
Related Questions in SQL-SERVER-2017
- Split Invoice Total into multiple Rows but Split always equals Total
- Retrieving Non Null Values Query, returns the previous previous value instead
- Continue record sequence in blank months until another record appears
- SQL Server xp_cmdshell process wont end with KILL command
- Triggers for checking complex uniqueness for table with soft deletes
- Returning XML Data in Tabular format when it isn't stored as XML
- Does Model Package Editor from Master Data Services have a limit on the Size of package you can edit?
- Create DB audit specification without ALTER ANY DATABASE AUDIT
- Stored procedure default value output parameter is ignored?
- Remove duplicate values in JSON Array
- Excel dates stored in SQL Table in Decimal format - convert back to dates
- Entity Framework Core 8 Where IN vs Where IN OPENJSON
- What is the purpose of setting a calculated column to be PERSISTED?
- Wrapper Function For Date Truncation
- SSMS Command Showing in Message Window with Completion time
Related Questions in LDF
- Problem with parsering for ldf file in python program
- How to open an MDF file using python?
- ldf is not supported
- MDF File Size Not Growing
- How could I reduce the size of log file?
- CANoe use 2 LDF
- Backup Log database SQL Server
- SQL Server log file (.ldf) being spammed with LOP_FORMAT_PAGE entries
- How can I keep ldf and mdf in two different drive?
- I have a problem with my database log file size
- Does SQL Server create a log entry when an exception occurs in a Trigger?
- Attachment failed when attaching mdf and ldf files to email (MSSQL 2017)
- SQL Server database reattachment error (not a permission issue)
- SQL Server transaction log ldf file
- Why is my LDF so large?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If you use a
fullrecovery model, then you are essentially preserving all the history of your database in your logs.Most likely you want to switch to
simplerecovery model, followed byDBCC SHRINKFILEas others have suggested.See here: https://learn.microsoft.com/en-us/sql/relational-databases/backup-restore/recovery-models-sql-server?view=sql-server-ver15