Forum Discussion

tinusvantonder's avatar
tinusvantonder
New Member
3 years ago
Solved

Get last update dates for all Cubes/Models

Hi All

 

I am busy writing a small monitoring system. I need to extract the last data update date for each cube in an instance. If i do this manually i need to connect to each database/cube and run "SELECT * FROM $system.MDSchema_Cubes" to get the information and coalate the resilt sets. Is there a way to write one query to interigate each database/cube and return one result set?

 

Thanks in advance

  • Thanks for the suggestion. Still an issue as I am not able to write a single query that will run through all CUBES and return data for each. I will be using the last modified date in $system.dbschema_catalogs until I have time to rewrite the monitoring logic. 

2 Replies

  • That data is meaningless. It only tells you when the cube was last processed. Instead, find a timestamp in your actual data (for example last order entry date) and present that to the users. 

    • tinusvantonder's avatar
      tinusvantonder
      New Member

      Thanks for the suggestion. Still an issue as I am not able to write a single query that will run through all CUBES and return data for each. I will be using the last modified date in $system.dbschema_catalogs until I have time to rewrite the monitoring logic.