Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Results of sys.dm_exec_procedure_stats are disordered

$
0
0
Hi I'v daily saved result of sys.dm_exec_procedure_stats in order to monitor number of execution of storedProcedures . (By subtraction Of today value and Prevday)I know that this results may reset if server resets. all things were ok . It means the number of execution had been increased On a regular basis. And if I saw a disorder it related to server reset. But about one month all results are untidy. For instance Number of sp's execution in last 5 days : 25260841119703340179113891211944729778... !!!!!!!!!!another sps have this type of results .I dont know why ?[code="sql"];With QAs(SELECT Ltrim([text]) TextCommand,objectid,total_logical_reads , execution_count , last_execution_time , GetDate() As InfoDate FROM sys.dm_exec_procedure_stats AS aCROSS APPLY sys.dm_exec_sql_text(a.sql_handle) AS b )Insert into DB_Dba.DBO.DM_Most_Executed_Procedureselect Top 1000 TextCommand,objectid,total_logical_reads , execution_count , last_execution_time , InfoDate from Q ORDER BY execution_count DESC[/code]

Viewing all articles
Browse latest Browse all 3145

Trending Articles