Quantcast
Channel: SCN: Message List - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 3587

Re: dump load 'cross-platform' - How to know if sp_flushstats was executed?

$
0
0

sp_flushstats will Flushes the in-memory table and index statistics that are stored in the DES/IDES to the system table sybtabstats.

you can check statmoddate column of systabstats system table to know last time executed 'sp_flushstats' !!

 

For example:

I executed 'sp_flushstats' on Aug  7 2013 11:04AM,

I can query systabstats system table and get confirmation information as following:

 

1> select id, substring(object_name(id),1,30) , statmoddate from systabstats where indid = 0 and statmoddate > '20130807'
2> go
id                                         statmoddate                    
----------- ------------------------------ -------------------------------
           1 sysobjects                                 Aug  7 2013 11:04AM
           2 sysindexes                                 Aug  7 2013 11:04AM
           3 syscolumns                                 Aug  7 2013 11:04AM
           5 sysprocedures                              Aug  7 2013 11:04AM
           6 syscomments                                Aug  7 2013 11:04AM
           9 sysprotects                                Aug  7 2013 11:04AM
          12 sysdepends                                 Aug  7 2013 11:04AM
          23 systabstats                                Aug  7 2013 11:04AM
          24 sysstatistics                              Aug  7 2013 11:04AM
          28 syspartitions                              Aug  7 2013 11:04AM

(10 rows affected)

 

HTH ! Thanks !

 

Regards,

Robert


Viewing all articles
Browse latest Browse all 3587

Trending Articles



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