In the process of processing a full database log, it is found that sometimes the database log cannot be cleared. After experiments, it can be done in the following ways.
Use exec sp_cycle_errorlog to clear the temporary log of the SQL system itself.
dump transaction hisdb with no_log - clear log
backup log hisdb with no_log-truncate the log
backuplog hisdb to disk = 'd: \ hisdb_log.bak'
dbccshrinkfile('hisdb_log',1)
dbccshrinkfile('hisdb1_log',1)
Use the above command to clear the log.