TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Microsoft SQL Server

Notices

sys.dm_exec_query_stats not dynamic?

Microsoft SQL Server


Reply
 
Thread Tools Display Modes
Old 11-12-2007, 04:41 PM   #1
EmeraldDBA
Guest
 
Posts: n/a
sys.dm_exec_query_stats not dynamic?

We noticed that after several months of heavy OLTP last_elapsed_time column
is no longer updated. DBCC FLUSHPROCINDB causes recompiles and restores the
updates. This is happening on several servers of 9.0.3152 build. We are
keeping track of our key SP performance by monitoring the last_elapsed_time
column. Does anyone have any words of wisdom?

Thanks,
Paul

  Reply With Quote
Old 11-12-2007, 04:42 PM   #2
jason
Guest
 
Posts: n/a
Re: sys.dm_exec_query_stats not dynamic?

How do you know it is not updated? What about last_execution_time?

--
Jason Massie
www:
rss:

"EmeraldDBA" <> wrote in message
news:...
> We noticed that after several months of heavy OLTP last_elapsed_time
> column
> is no longer updated. DBCC FLUSHPROCINDB causes recompiles and restores
> the
> updates. This is happening on several servers of 9.0.3152 build. We are
> keeping track of our key SP performance by monitoring the
> last_elapsed_time
> column. Does anyone have any words of wisdom?
>
> Thanks,
> Paul
>


  Reply With Quote
Old 11-12-2007, 04:44 PM   #3
Uri Dimant
Guest
 
Posts: n/a
Re: sys.dm_exec_query_stats not dynamic?

Hi
In SQL Server 2005 you can use the sys.dm_db_index_usage_stats data
management view, look at the column last_user_update, you can also see when
the table was last accessed (last_user_seek and last_user_scan - do a MAX on
them).


"EmeraldDBA" <> wrote in message
news:...
> We noticed that after several months of heavy OLTP last_elapsed_time
> column
> is no longer updated. DBCC FLUSHPROCINDB causes recompiles and restores
> the
> updates. This is happening on several servers of 9.0.3152 build. We are
> keeping track of our key SP performance by monitoring the
> last_elapsed_time
> column. Does anyone have any words of wisdom?
>
> Thanks,
> Paul
>



  Reply With Quote
Old 11-12-2007, 05:12 PM   #4
Uri Dimant
Guest
 
Posts: n/a
Re: sys.dm_exec_query_stats not dynamic?

Hi
In SQL Server 2005 you can use the sys.dm_db_index_usage_stats data
management view, look at the column last_user_update, you can also see when
the table was last accessed (last_user_seek and last_user_scan - do a MAX on
them).


"EmeraldDBA" <> wrote in message
news:...
> We noticed that after several months of heavy OLTP last_elapsed_time
> column
> is no longer updated. DBCC FLUSHPROCINDB causes recompiles and restores
> the
> updates. This is happening on several servers of 9.0.3152 build. We are
> keeping track of our key SP performance by monitoring the
> last_elapsed_time
> column. Does anyone have any words of wisdom?
>
> Thanks,
> Paul
>



  Reply With Quote
Reply

Thread Tools
Display Modes



< Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 12:39 AM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2009, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional