Additional SQL Server features and topics not covered by specific categories
Hi @developpement info ,
If you want to reduce the size of log file, you need to shrink log file. In order to shrink transaction log, please follow the steps below:
- Perform full backup of database
- Perform transaction log backup
sometimes, we have to perform multi transaction log backup before the transaction log could be shrank. - Shrink transaction log
if the transaction log cannot be shrank, please execute the following statement to check why the transaction log cannot be shrink: SELECT log_reuse_wait_desc FROM sys.databases WHERE name='<database name>'
if the result is other than NOTHING, please perform corresponding operation. Then please try step 2 and 3 again.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".