惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

L
LINUX DO - 热门话题
C
Check Point Blog
Hugging Face - Blog
Hugging Face - Blog
N
News | PayPal Newsroom
Security Archives - TechRepublic
Security Archives - TechRepublic
N
News and Events Feed by Topic
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Troy Hunt's Blog
H
Heimdal Security Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Secure Thoughts
博客园 - Franky
A
Arctic Wolf
Spread Privacy
Spread Privacy
P
Proofpoint News Feed
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
C
CXSECURITY Database RSS Feed - CXSecurity.com
博客园 - 【当耐特】
博客园 - 三生石上(FineUI控件)
T
Threat Research - Cisco Blogs
The Last Watchdog
The Last Watchdog
博客园_首页
Forbes - Security
Forbes - Security
Google DeepMind News
Google DeepMind News
Project Zero
Project Zero
T
Threatpost
Y
Y Combinator Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Cisco Talos Blog
Cisco Talos Blog
小众软件
小众软件
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Schneier on Security
Schneier on Security
博客园 - 叶小钗
量子位
Security Latest
Security Latest
酷 壳 – CoolShell
酷 壳 – CoolShell
U
Unit 42
A
About on SuperTechFans
大猫的无限游戏
大猫的无限游戏
Simon Willison's Weblog
Simon Willison's Weblog
博客园 - 聂微东
Apple Machine Learning Research
Apple Machine Learning Research
Jina AI
Jina AI
P
Privacy International News Feed
Help Net Security
Help Net Security
博客园 - 司徒正美
D
DataBreaches.Net
MongoDB | Blog
MongoDB | Blog
C
CERT Recently Published Vulnerability Notes
T
The Exploit Database - CXSecurity.com

博客园 - ipusr

javascript对float数值进行运算的误差解決 SQL性能优化总结 - ipusr - 博客园 net dll 破解 Balsamiq Mockups 小窍门 Web键盘操作键值表 - ipusr - 博客园 .NET 项目中用到的广告效果 如何防止空链接 # 返回到页面 - ipusr PowerDesigner使用注意事项 sql表数据生成insert HBKrnl木马病毒杀毒办法(HBKernel.sys) (转)jQuery 基础 - ipusr - 博客园 使用Javascript操作DOM的一些方法--元素的访问/复制等 - ipusr - 博客园 JS获取所有对象 javascript - ipusr - 博客园 用户中心 - 博客园 数字验证 控件 - ipusr - 博客园 Net读取Execl问题回顾 - ipusr - 博客园 SET NOCOUNT RowCount 説明 sysloader 木马清除方法
SQL 压缩日志
ipusr · 2011-05-12 · via 博客园 - ipusr
  • SQL2000 、 SQL2005

 Backup Log 数据库名称 with no_log
go
dump transaction 数据库名称 with no_log
go
DBCC SHRINKDATABASE(数据库名称)

Go

  • SQL 2008

USE 數據庫名稱 ;
GO
ALTER DATABASE 數據庫名稱 SET RECOVERY SIMPLE;--设置简单恢复模式
GO
DBCC SHRINKFILE (數據庫日誌名稱, 1);
GO
ALTER DATABASE 數據庫名稱  SET RECOVERY FULL;--恢复为原模式
GO

  • 备注:

可通过以下命令查找数据库日志名称等

Sp_helpdb
SELECT * FROM sys.database_files

posted on 2011-05-12 16:22  ipusr  阅读(253)  评论(0)    收藏  举报

刷新页面返回顶部