利用JOB数据库优化

1)Dump Transaction huntkeywage with no_log

backup log huntkeywage with no_log

dbcc shrinkdatabase('huntkeywage')

2)dbcc dropcleanbuffers
3)EXECUTE master.dbo.xp_sqlmaint N'-PlanID 3F47E1C9-0769-43F2-BB25-C76BE1815F02  -RebldIdx 5 -RmUnusedSpace 50 10 '

你可能感兴趣的:(数据库优化)