SQL Server

Published on May 2016 | Categories: Documents | Downloads: 32 | Comments: 0 | Views: 261
of 1
Download PDF   Embed   Report

Comments

Content

USE AdventureWorks GO SELECT name AS index_name, STATS_DATE(OBJECT_ID, index_id) AS StatsUpdated FROM sys.indexes WHERE OBJECT_ID = OBJECT_ID('HumanResources.Department') GO The above query will tell the last stats gathered on the particular table, If fo r some reason you feel stats is not up to date, you can update it using. USE AdventureWorks; GO UPDATE STATISTICS HumanResources.Department WITH FULLSCAN GO

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close