Get SSAS cube last process time

后端 未结 4 833
野的像风
野的像风 2021-01-14 19:17

In Excel I make an Analysis Services connection to a data cube. I would like to be able to show a user how current the data is by showing them when the last cube processing

4条回答
  •  伪装坚强ぢ
    2021-01-14 19:58

    I use the following VBA to place current date-time into a cell in the spreadsheet whenever any pivot table (which includes those populated from SSAS) is updated:

    Private Sub Workbook_SheetPivotTableUpdate(ByVal Sh As Object, ByVal Target As PivotTable)
    Range("Documentation!B3").Value = Now()
    End Sub
    

    This captures the time when the spreadsheet extracted data from the cube rather than the time the cube was processed, but perhaps may be of some help to you.

提交回复
热议问题