How to know last process time of SSAS Cube

  • Hi

    I have deployed the SSAS cube on to the server.

    I know how to see when the cube was last ran.

    But I am wondering how can i know how much time it took for processing.

  • How are you currently processing the cube? If you are simply using a SQL Agent job with a script you should be able to get the time based on the Agent job or if you are using an SSIS package you should look at enabling the logging features to determine how long the SSIS task took to complete.

    To get the last processed time to display to the users you can use the DMV if you are using SSAS 2008 or utilize the ASSP project on CodePlex - http://social.msdn.microsoft.com/Forums/en-SG/sqlanalysisservices/thread/80abc80c-b1f3-440f-9663-8ad161853d60:

    SELECT CUBE_NAME, LAST_DATA_UPDATE FROM $System.MDSCHEMA_CUBES

    OR

    WITH MEMBER [Measures].[LastProcessed] AS ASSP.GetCubeLastProcessedDate() SELECT [Measures].[LastProcessed] ON 0 FROM [myCube]

    ----------------------------------------------------------------------------------------
    Dan English - http://denglishbi.wordpress.com

  • Thanks a lot ...Appreciate

  • Look in the event log under Application, at the around the time your cube finished it's last run.

    We process ours using a package, and we have events 12288 written to the log at start, and 12289 at completion.

    Greg E

  • denglishbi (4/16/2010)


    How are you currently processing the cube? If you are simply using a SQL Agent job with a script you should be able to get the time based on the Agent job or if you are using an SSIS package you should look at enabling the logging features to determine how long the SSIS task took to complete.

    To get the last processed time to display to the users you can use the DMV if you are using SSAS 2008 or utilize the ASSP project on CodePlex - http://social.msdn.microsoft.com/Forums/en-SG/sqlanalysisservices/thread/80abc80c-b1f3-440f-9663-8ad161853d60:

    SELECT CUBE_NAME, LAST_DATA_UPDATE FROM $System.MDSCHEMA_CUBES

    OR

    WITH MEMBER [Measures].[LastProcessed] AS ASSP.GetCubeLastProcessedDate() SELECT [Measures].[LastProcessed] ON 0 FROM [myCube]

    Hey thanks, this was very helpful.

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply