October 20, 2011 at 11:49 pm
Does truncate table runs the update statistics also?
Thanks
October 21, 2011 at 12:11 am
No. Also one more thing that the update statistics are not happening all on a sudden when its invalidated.
October 21, 2011 at 12:14 am
October 21, 2011 at 5:13 am
No. The only thing that updates stats are index rebuilds, auto stats updates and UPDATE STATISTICS. However truncate, setting the rowcount to 0, will ensure that autoupdate gets triggered the next time the stats are needed.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply