[Error Fix] The transaction log for database 'DATABASENAME' is full
来源:互联网 发布:注册域名几天可以交易 编辑:程序博客网 时间:2024/04/30 13:52
error info:
Microsoft OLE DB Provider for ODBC Drivers ���~ '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]The transaction log for database 'haiyangproducts' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases
/e/product/product_detail.asp, �C16
fix steps:
USE databasename;
GO
ALTER DATABASE databasename SET RECOVERY SIMPLE;--如果是FULL类型,修改为SIMPLE类型
GO
DBCC SHRINKFILE (databasename_Log, 10); --10MB--收缩日志文件大小(单位是M)
GO
ALTER DATABASE databasename SET RECOVERY FULL;--恢复成FULL类型
收缩数据库 DBCC SHRINKFILE:
数据库中的每个文件都可以通过删除未使用的页的方法来减小。尽管数据库引擎会有效地重新使用空间,但某个文件多次出现无需原来大小的情况后,收缩文件就变得很有必要了。数据和事务日志文件都可以减小(收缩)。可以成组或单独地手动收缩数据库文件,也可以设置数据库,使其按照指定的间隔自动收缩。
文件始终从末尾开始收缩。例如,如果有个 5 GB 的文件,并且在dbcc shrinkfile 语句中将 target_size 指定为 4 GB,则数据库引擎将从文件的最后一个 1 GB 开始释放尽可能多的空间。如果文件中被释放的部分包含使用过的页,则数据库引擎先将这些页重新放置到文件的保留部分。只能将数据库收缩到没有剩余的可用空间为止。例如,如果某个 5 GB 的数据库有 4 GB 的数据,并且在dbcc shrinkfile语句中将 target_size 指定为 3 GB,则只能释放 1 GB。
- [Error Fix] The transaction log for database 'DATABASENAME' is full
- SQL0964C The transaction log for the database is full.
- DB2 SQL0964C The transaction log for the database is full
- Fixing an "SQL0964C Transaction log for database is full" error
- The transaction log for database 'xx' is full,Error: 9002, Severity: 17, State: 2
- Msg 9002 The transaction log for database '' is full
- SQL0964C The transaction log for the database is full. SQLSTATE=57011
- DB2 SQL0964C The transaction log for the database is full. SQLSTATE=57011 处理
- DB2 The transaction log for the database is full. SQLSTATE=57011
- SQL0964C The transaction log for the database is full (DB2 事务 日志满 清理 )
- DB2 The transaction log for the database is full. SQLSTATE=57011
- DB2 “The transaction log for the database is full” 问题及解决办法
- SQL0964C The transaction log for the database is full. SQLSTATE=57011
- DB2 删除大量记录报错SQL0964C The transaction log for the database is full
- The log file for database '' is full
- BuildForge使用默认的DB2 Express运行时出现ERROR [IBM][CLI Driver][DB2/6000] SQL0964C The transaction log for the database is full. SQLSTATE
- The transaction log for database 'NJ_Address' is full. To find out why space in the log cannot be
- Database log is full
- [C/C++] 常见错误汇总(2)
- IOS 视图切换 页面跳转
- android 完全退出程序
- 在hibernate+mysql:Field 'id' doesn't have a default value两种解决办法
- 十六周上机任务(字符串)
- [Error Fix] The transaction log for database 'DATABASENAME' is full
- glBlendFunc()的参数(转自CSDN)
- MonkeyRunner_Android view client的配置
- DEDECMS网站数据快速迁移、数据库备份和还原
- java生成newid随机数
- C++的XML编程经验――LIBXML2库使用指南
- opencv cvhog详解
- 裸色调的旋律
- Serializable的必要条件