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
- MYSQL delete query works in console, but not in PHP script
- Deleting from table using drop down list
- sql delete based on group by
- DELETE WITH INTERSECT
- SQL Server 2005 Update/Delete Substring of a Lengthy Column
- SQLite : On cascade delete doesn't works
- Delete all records in table which have no reference in another table
- SQL Server : Delete rows based on parameter table
- Duplicate delete links
- Sql delete parent from child/delete whole tree
- How to delete the more than 10 records from top table, using Sql Server 2008?
- how to delete a single semicolon separated value from database in Codeigniter
- How to inform user that the data to be deleted/updated has critical values?
- MySQL delete from Memory table join InnoDB table
- Writing PDO DELETE query values
Related Questions in SQL-SERVER-2017
- Service Broker behind NAT and port forwarding results in "corrupted message has been received" error
- How to start SQL Server 2017 on Linux in single user mode/ masteronly recovery mode?
- SQL SERVER MANAGEMENT STUDIO 17 - Unable to connect to sqlserver
- SQL syntax for JSON output for polygons
- Can I prevent SQL Server Management Studio 2017 prefixing scripts with "Scripting Parameters"?
- How to change a column of JSON array of objects to object in SQL Server
- Using gridview to display string data vertically in a row
- Need to split column into rows and columns
- How to calculate employees working hours in sql
- Extract and evaluate range from a give range string
- Random Rows Delete
- Generate increment in field ID_LIST XML in SQL Server
- Docker : Trying to connect Spring Java Container app to MS Sql Server container : getting error : connection failed
- Need to show NULL as a value of missing attributes in a separate row
- Use a common field in two tables with XML in SQL Server
Related Questions in LDF
- How to open the SQL Server Transaction Log File(LDF)?
- ldf is not supported
- how can i see data in mdf file
- How can I find information about updating or inserting a sql table row in sql server 2008?
- SQL Server Log File Is Huge
- MDF File Size Not Growing
- Should I put my .mdf and .ldf files from my code into Visual Studio Team Services repository
- Restore database from bak and ldf files
- Why is my LDF so large?
- SQL Server transaction log ldf file
- SQL Server database reattachment error (not a permission issue)
- Attachment failed when attaching mdf and ldf files to email (MSSQL 2017)
- I have a problem with my database log file size
- ldf in simple mode grew
- Cannot delete SQLServer2005 data or log files
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 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