Search results
11 wrz 2008 · Putting the database in SIMPLE recovery mode will make sure that SQL Server re-uses portions of the log file (essentially phasing out inactive transactions) instead of growing to keep a record of all transactions (like FULL recovery does until you back up the log).
18 lis 2015 · Learn how to determine SQL Server Transaction Log usage and how to remove unnecessary SQL Server transaction log files.
20 sie 2024 · This article covers how to monitor SQL Server transaction log size, shrink the transaction log, add to or enlarge a transaction log file, optimize the tempdb transaction log growth rate, and control the growth of a transaction log file.
25 mar 2014 · To shrink the log in SSMS, right click the database, choose Tasks, Shrink, Files: On the Shrink File window, change the File Type to Log. You can also choose to either release unused space, reorganize pages before releasing unused space, or empty file by migrating the data to other files in the same filegroup: Shrink the log using TSQL.
28 lut 2023 · Learn how to delete data or log files in SQL Server by using SQL Server Management Studio or Transact-SQL.
After switching to simple mode, use DBCC SHRINKFILE with the EMPTYFILE parameter to shrink the extra log files (might take multiple attempts if the log files are in use, or you might have to wait for active transactions to finish). Then use ALTER DATABASE MODIFY FILE to drop the extra log files.
29 lip 2024 · The transaction log supports the following operations: Individual transaction recovery. Recovery of all incomplete transactions when SQL Server is started. Rolling a restored database, file, filegroup, or page forward to the point of failure. Supporting transactional replication.