The log file size is huge

We have one database, and we do a lot of transactions per day, so the size of the log file is growing too much, and I tried to reduce it, but did not decrease.

What should I do to reduce the size of the log file. (We do too many inserts)

Thanks Srinivas

+1
source share
2 answers

You have a database with the full version of the recovery model and you are not backing up the logs.

Either install for a simple recovery model, or configure log backups. There are no other correct options (for example, reduction or truncation). The link above contains links to other articles.

+3

, , :

 use databasename; 
 CHECKPOINT;
 DBCC SHRINKFILE ('databasename_log');

databasename_log -

+1

Source: https://habr.com/ru/post/1755047/