- 1、本文档共7页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
数据库压缩2(Database compression 2)
数据库压缩2(Database compression 2)
DBCC SHRINKDATABASE
Shrinks the size of the data file specified in the database.
grammar
DBCC SHRINKDATABASE
(database_name [[target_percent]]
[TRUNCATEONLY] |, {NOTRUNCATE}
)
parameter
Database_name
Is the name of the database to be contracted. The database name must conform to the rules of identifiers. For more information, see using identifiers.
Target_percent
Is the amount of space available in the database file after the database shrinks.
NOTRUNCATE
Causes the reserved file space to be kept in the database file. If not specified, the released file space is released to the operating system.
TRUNCATEONLY
This results in the release of any unused space in the data file to the operating system and shrinks the file to the last allocated size, thus reducing the size of the file without moving any data. Rows that do not attempt to reposition an unassigned page. When using TRUNCATEONLY, ignore target_percentis.
Notes
Microsoft, SQL, Server? Can shrink:
All data and log files for a particular database. Execute DBCC SHRINKDATABASE.
Data or log files at a time in a particular database. Execute DBCC SHRINKFILE.
DBCC SHRINKDATABASE shrinks the data files in each file. However, when DBCC SHRINKDATABASE shrinks the log file, it looks as if all the log files are in a continuous log pool.
Suppose the database named mydb has two data files and two log files. These data files and log files are 10 MB in size. The first data file contains 6 MB data.
For each file, SQL Server calculates the target size, that is, the size of the file to be contracted. When specifying DBCC SHRINKDATABASE with target_percent, the target size of SQL Server is the size of the target_percent space available in the contracted file. For example, if specified, press target_percent 25 to shrink mydb. The target size of the file calculated by SQL Server is 8 MB (6 MB data plus 2 MB of free space). Therefore, SQL Server moves any data from the last 2 MB of the data file to the ava
您可能关注的文档
- 拔罐减肥效果肯定是有的(Cupping effect is sure to have some weight loss).doc
- 拓展知识(Expand knowledge).doc
- 拔针技术在骨膜劳损中的应用(Application of needle pulling technique in periosteum strain).doc
- 拖拉机座椅振动对驾驶员腰部疲劳影响研究_以积分肌电值和主观感受评价(Study on driver fatigue evaluation _ waist effect of tractor seat vibration to iEMG and subjective feelings).doc
- 拖拉机故障分析及诊断方法(Tractor fault analysis and diagnosis method).doc
- 招商银行汽车联名卡自驾意外伤害保险服务手册(China Merchants Bank Co branded card self driving accident insurance service manual).doc
- 拖延,时间不一致与如何行动(Procrastination, time inconsistency, and how to act).doc
- 招教考试语文+综合模拟试题(Chinese language teaching + comprehensive simulation test questions).doc
- 招商,学习蒙牛好榜样--从蒙牛成功上市看招商突围(Inviting businessmen to learn the good example of Mengniu -- looking at the breakthrough of Mengniu's successful listing).doc
- 招势三顾客感知风险预测——上市前的准备(Potential three customer perceived risk prediction - preparation before listing).doc
- 数据库设计思想(Database design idea).doc
- 数据恢复中需要注意的问题(Problems needing attention in data recovery).doc
- 数据库第十三章课后57题(The thirteenth chapter of the database 57 questions after class).doc
- 数据库的备份与恢复 导入 导出(Database backup and recovery, import and export).doc
- 数据恢复秘技参考大全(Data recovery by reference).doc
- 数据恢复与备份(Data recovery and backup).doc
- 数据恢复秘技大全(Data recovery cheats Daquan).doc
- 数据恢复全解析(Data recovery full resolution).doc
- 数据恢复基础知识(Data recovery Basics).doc
- 数据挖掘细分客户群,精准营销赢得市场(Data mining, customer segmentation, precision marketing to win the market).doc
文档评论(0)