Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 5123

Issue with auto update stats

$
0
0

Hi All,

I have a database upon which the auto create and update stats is ON which I found by following query,

   
   SELECT NAME    	,is_auto_create_stats_on    	,is_auto_update_stats_on    FROM sys.databases


I obsereved that stats are not being updated automatically for all indexes. I found that using the below query,

 
  SELECT name AS index_name,    STATS_DATE(OBJECT_ID, index_id) AS StatsUpdated    FROM sys.indexes    ORDER BY STATS_DATE(OBJECT_ID, index_id) DESC



Does anyone faced the same issue and whats the resolution for the issue


Viewing all articles
Browse latest Browse all 5123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>