• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • YouClaw
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
PowerCoder
博客园    首页    新随笔    联系   管理    订阅  订阅
2020年3月3日
Shrinking a SQL Server database not working(转载)
摘要: 问 I'm not a DBA but I need to shrink a DB, I tried using the SSMS interface to shrink and it didn't work.The stats are as follows: Size: 235,013.00 MB 阅读全文
posted @ 2020-03-03 20:46 PowerCoder 阅读(233) 评论(0) 推荐(0)
SQL Server数据库损坏,会导致收缩数据库不起作用
摘要: 我们开发环境的SQL Server上有一个数据库叫"RawData",该数据库有大量的空间被占用,但是实际上这些空间都未被使用。可以通过下面的SQL语句查询数据库占用空间的比例: USE RawData EXEC sys.sp_spaceused 然而无论我用什么办法,收缩数据库"RawData"都 阅读全文
posted @ 2020-03-03 19:18 PowerCoder 阅读(1029) 评论(0) 推荐(0)
SQL Server中Reorganize和Rebuild索引的区别(链接)
摘要: 下面这篇微软的官方文档,详细阐述了在SQL Server中Reorganize和Rebuild索引的区别: Reorganize and rebuild indexes 其中微软给出了一个建议的阈值,如果索引的avg_fragmentation_in_percent值小于等于30%时,建议使用Reo 阅读全文
posted @ 2020-03-03 18:13 PowerCoder 阅读(890) 评论(0) 推荐(0)
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3