清理SQLServer数据库日志
来源:互联网 发布:淘宝介入后买家没退货 编辑:程序博客网 时间:2024/05/26 22:59
手动清理:
D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Log
语句清理:
ALTERDATABASE 数据库 SETRECOVERYSIMPLE
ALTERDATABASE 数据库 SETRECOVERYFULL
DBCCSHRINKDATABASE(数据库,0)
Tempdb事务日志满了之后,可以在没有回话占用tempdb的时候,使用下面的语句收缩日志
use tempdb
go
dbcc shrinkfile (tempdev, 'target size in MB')
go
-- this command shrinks the primary data file
dbcc shrinkfile (templog, 'target size in MB')
go
-- this command shrinks the log file, look at the last paragraph.
use tempdb
go
dbcc shrinkfile (tempdev, 'target size in MB')
go
-- this command shrinks the primary data file
dbcc shrinkfile (templog, 'target size in MB')
go
-- this command shrinks the log file, look at the last paragraph.
阅读全文
0 0
- sqlserver数据库日志清理
- SqlServer清理数据库日志
- 清理SQLServer数据库日志
- SQLServer数据库日志清理清除sqlserver2005日志
- SQLServer数据库日志清理 清除sqlserver2005日志
- SQLServer事务日志清理
- SQLSERVER 日志清理
- sqlserver清理日志
- SQLSERVER 日志清理(转贴)
- SQLSERVER清理日志
- 清理sqlserver日志
- sqlserver 清理日志文件
- SQLSERVER数据库日志文件过大,如何压缩并定期清理 ?
- 清理数据库日志命令
- MSSQL数据库日志清理
- 数据库日志清理脚本
- MSSQL数据库日志清理
- 清理数据库日志
- 学习笔记TF031:实现VGGNet
- gradle疑问
- JAVA多线程和并发基础面试问答
- visual studio code 与github集成(整合)
- RecyclerView中使用无限轮播ViewPager的问题
- 清理SQLServer数据库日志
- leveldb源码分析四
- 登陆页面的html设置
- java文档注释
- oracle dg打开备库为读写数据库,慎重!
- HDU-6034 Balala Power!
- 深入理解Java中的final关键字(转)
- 如何判断工作好坏
- python读写操作csv文件