Solved

How to check if a Cube is being processed

Posted on 2007-11-22
5
619 Views
Last Modified: 2013-11-30
Hi All,
My basic question is; can I use trans SQL to check to see if a cube is being processed?  i.e. is there a processing flag in a table somewhere?

My full problem is that I have 2 cubes.  They are built in 2 SSIS (DTS) packages.  The packages run a batch of data refresh processes before building the cube and are staggered so the cubes shouldnt really be built at the same time. However, i'd like to put in a process that checks to see if the other cube is being processed before it starts processing its own cube.

Any help would be much appreciated.
0
Comment
Question by:kinton
  • 3
5 Comments
 
LVL 25

Accepted Solution

by:
imitchie earned 500 total points
ID: 20333765
i would suggest using a control table
cubeid, starttime
each dts package starts by inserting into it
delete or update with end time when done
the other cube(s) can check this table
0
 
LVL 25

Expert Comment

by:imitchie
ID: 20333776
you can have more control using sql waitfor commands to wait for the other cube to finish
0
 
LVL 18

Expert Comment

by:PFrog
ID: 20333964
Your easiest option is to add both existing SSIS packages into another 'parent' SSIS package. You can then create a process flow from one to the other - i.e. as soon as the first package has completed the next will be executed.
0
 
LVL 25

Expert Comment

by:imitchie
ID: 20336051
except if you want them to start at specific times, but just want to avoid clashes, i.e. not really next,next,next scenario
0
 
LVL 2

Author Comment

by:kinton
ID: 20349132
I couldn't use the process flow as the Cube build packages are already in a flow to start when the data has finished building.  Basically;

Data1 kicks off
Data 2 Kicks off
When data1 is finished, Cube1 is started.
When data2 is finished, Cube 2 is started, but I want it to make sure Cube1 isn't still being built as both Cubes are on the same sever.

I went with using a control table, so thanks imitchie, but if anyone comes accross a value in master or msdb or somewhere that stores if a cube is processing, I would still be interested to heat about it.  Thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Solution for warm standby SQL server 20 32
System Center 2016 SQL Srv 1 24
Steps to produce a data strategy 5 34
SQL Server stored proc 2 10
Creating and Managing Databases with phpMyAdmin in cPanel.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now