How to determine which SSAS Cube is processing now?

前端 未结 4 2228
长情又很酷
长情又很酷 2021-02-15 03:56

There is a problem when several users can process the same cube simultaniously and as a result processing of cube fails. So I need to check if certain cube is processing at curr

4条回答
  •  梦如初夏
    2021-02-15 04:27

    I dont think you can prevent a cube from being processed if someone else is already processing it. What you can do to "help" is run a MDX query to check the last time the cube was processed:

    SELECT CUBE_NAME, LAST_DATA_UPDATE FROM $System.MDSCHEMA_CUBES
    

    or check the sys.process table on the realted sql server instance to see if it is running:

    select spid, ecid, blocked, cmd, loginame, db_name(dbid) Db, nt_username, net_library, hostname, physical_io, 
           login_time, last_batch, cpu, status, open_tran, program_name
    from master.dbo.sysprocesses
    where spid > 50
      and loginame <> 'sa'
      and program_name like '%Analysis%'
    order by physical_io desc
    go
    

提交回复
热议问题