- 1、本文档共7页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
数据库压缩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
- 拖延,时间不一致与如何行动(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
- 招势一战略部署的重要性(Recruit one potential the importance of strategic deployment).doc
- 《剖宫产术后子宫瘢痕憩室治疗中的护理程序优化研究》教学研究课题报告.docx
- 小学英语课程中人工智能教育资源开发与版权保护策略分析教学研究课题报告.docx
- 新时代高中生物教师激励机制创新研究——基于数字化教学管理教学研究课题报告.docx
- 人工智能教育技术融合创新:技术扩散机制在教育管理中的应用探讨教学研究课题报告.docx
- 《设施葡萄栽培环境调控与果实耐储运性关系研究》教学研究课题报告.docx
- 《健身俱乐部团体课程教学质量对会员留存率的影响机制探讨》教学研究课题报告.docx
- 高中政治教学中辨析式学习活动与多媒体技术的融合研究教学研究课题报告.docx
- 8 《高校思想政治理论课案例教学中的国际政治文化研究》教学研究课题报告.docx
- 人工智能教育资源开发中的版权保护技术路径优化教学研究课题报告.docx
- 高中信息技术教育中人工智能教育资源开发与版权保护及知识付费模式探讨教学研究课题报告.docx
文档评论(0)