MSSQL自动索引和碎片整理
https://github.com/Microsoft/tigertoolbox/tree/master/AdaptiveIndexDefrag
执行上面的usp_AdaptiveIndexDefrag.sql后,制定作业计划,执行类似
EXEC dbo.usp_AdaptiveIndexDefrag @dbScope = 'AdventureWorks2014' 同上,除了它的作用域只是 'AdventureWorks2014' 数据库。
EXEC dbo.usp_AdaptiveIndexDefrag @dbScope = 'AdventureWorks2014', @tblName = 'Production.BillOfMaterials' 与上述相同,但仅作用于 BillOfMaterials 表。
浙公网安备 33010602011771号