Viewing Integration Services Users with Locks

The CB_CONCURRENCY table in OLAP Metadata Catalog contains information about the users who access OLAP models and metaoutlines. This table contains the following columns:

  To determine which users are accessing a specific OLAP model or metaoutline:

  1. Enter the following SELECT statement in the OLAP Metadata Catalog database, using the tools for the data source you are using:

    SELECT CB_USER_NAME, CB_OBJECT_ID, CB_OBJECT_TYPE,
           CB_OBJECT_LOCK, CB_LOCK_TIMESTAMP
    FROM CB_CONCURRENCY
  2. View the results.

    In the following example, the sa user is the only user currently accessing an OLAP model or metaoutline. The sa user has two read locks on one OLAP model and one read lock each on two different metaoutlines.

    CB_USER_NAME CB_OBJECT_ID CB_OBJECT_TYPE CB_OBJECT_LOCK CB_LOCK_TIMESTAMP
    ------------ ------------ -------------- -------------- -----------------
    sa           889844639        1               1         Apr 9 2004 4:43PM
    sa           889845263        2               1         Apr 9 2004 4:43PM
    sa           889844639        1               1         Apr 9 2004 5:20PM
    sa           892167813        2               1         Apr 9 2004 5:20PM
                                                          (4 row(s) affected)

    You can determine the following information from the sample CB_CONCURRENCY table shown in the preceding list:

    • The first row of the results tells you that the sa user (CB_USER_NAME = sa) has a read lock (CB_OBJECT_LOCK = 1) on an OLAP model (CB_OBJECT_TYPE = 1) with an ID of 889844639.

    • The second row of the results tells you that the sa user (CB_USER_NAME = sa) has a read lock (CB_OBJECT_LOCK = 1) on a metaoutline (CB_OBJECT_TYPE = 2) with an ID of 889845263.

    • The third row of the results tells you that the sa user (CB_USER_NAME = sa) has a read lock (CB_OBJECT_LOCK = 1) on an OLAP model (CB_OBJECT_TYPE = 1) with an ID of 889844639.

    • The fourth row of the results tells you that the sa user (CB_USER_NAME = sa) has a read lock (CB_OBJECT_LOCK = 1) on a metaoutline (CB_OBJECT_TYPE = 2) with an ID of 892167813.

When you open a metaoutline, you receive a read lock on the metaoutline and on the OLAP model on which it is based; therefore, you can assume that the sa user is working on two different metaoutlines based on the same OLAP model.