select log_reuse_wait_desc from sys.databases where name = 'mydb'
1. LOG_BACKUP
所有更新和插入查詢拋出:
ODBC Error: ODBC RC=-1, ODBC SQLState=37000, DBMS RC=9002, DBMS Msg=[Microsoft][ODBC SQL Server Driver][SQL Server]The transaction log for database 'mydb' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases. Operation canceled
我的查詢: 首先,我刪除和插入數據狀態表:
String insertQuery = "insert into "+dbmsName+"."+schemaName+".status(siteId,Severity) values(?,?)";
String deleteQuery = "delete from "+dbmsName+"."+schemaName+".status";
現在我從狀態表和更新直播表中選擇:
String updateQuery = "update "+dbmsName+"."+schemaName+".live set status = ? where new_site_id = ?";
String updateAllQuery = "update "+dbmsName+"."+schemaName+".live set status = site_status where new_site_id = ?";
現在,我甚至不能使用任何其他更新查詢過。
我該如何解決這個問題?
最大尺寸是無限的 – kinkajou 2012-02-05 05:23:36