摘要:
问 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上有一个数据库叫"RawData",该数据库有大量的空间被占用,但是实际上这些空间都未被使用。可以通过下面的SQL语句查询数据库占用空间的比例: USE RawData EXEC sys.sp_spaceused 然而无论我用什么办法,收缩数据库"RawData"都 阅读全文
posted @ 2020-03-03 19:18
PowerCoder
阅读(1029)
评论(0)
推荐(0)
摘要:
下面这篇微软的官方文档,详细阐述了在SQL Server中Reorganize和Rebuild索引的区别: Reorganize and rebuild indexes 其中微软给出了一个建议的阈值,如果索引的avg_fragmentation_in_percent值小于等于30%时,建议使用Reo 阅读全文
posted @ 2020-03-03 18:13
PowerCoder
阅读(890)
评论(0)
推荐(0)
浙公网安备 33010602011771号