[The log of the database 'tempdb' is full] The latest solution, tempdb log
The log of the database 'tempdb' is full.
Execute SQL statements. Temporary tables are not used in the middle.
Prompt server: Message 9002, Level 17, status 2, Row 1
The log of the database 'tempdb' is full. Back up the transaction logs of the database to release some log space.
I found a solution on the Internet, which roughly solved the problem by expanding the log file size of the temporary database.
Solution Process:
The following figure shows the database attributes, which are automatically increasing without specifying the maximum file size.
Baidu has been on the Internet for a long time, and I tried some methods. The disk where the database is located has a lot of available space. I tried to fix it again.
Change the size of the tempdb data file and log file to 3000 MB,
Solve the problem.
Record the command for clearing logs:
Dump transaction dbname WITH NO_LOG
Transaction Log truncation command:
Backup log dbname WITH NO_LOG
Log shrinking:
Right-click Database-properties-all tasks-shrink database-file-Select File-OK.
Although the log clearing command is used to clear the logs of tempdb, the problem cannot be solved. Therefore, the size of data files and log files in tempdb is expanded,
Alter database [tempdb] modify file (NAME = N 'templog', MAXSIZE = UNLIMITED)
Alter database [tempdb] modify file (NAME = N 'templog', FILEGROWTH = 10%)
Alter database [tempdb] modify file (NAME = N 'templog', SIZE = 1000)
Alter database [tempdb] modify file (NAME = N 'tempdev', SIZE = 1000)