Wednesday 24 February 2010

Scheduled Cognos Reports

If you are not able to access Cognos Auditing reports
and you need to know which reports are scheduled, you
can query the Content Store. This script includes
the source of report views and the name of the package.

select
r.path+r.name report_or_report_view
, r.created
, r.modified
, r.disabled
, r.class
, r.description
, p.startdate
, p.enddate
, case when r.class = 'reportview' then s.path+s.name else 'N/A' end as source_report_view
, case when r.class = 'report' then s.name else t.name end as package
from reports r
join cmobjects j on r.cmid = j.pcmid
join cmobjprops2 p on p.cmid = j.cmid
join cmrefnoord1 n on n.cmid = r.cmid
join reports s on s.cmid = n.refcmid
left join cmrefnoord1 q on q.cmid = s.cmid
left join reports t on t.cmid = q.refcmid
where p.active=1
and (p.endtype = 0 or p.enddate >getdate())

You can fill the 'reports' table by executing the procedure
as described in my earlier post in

Content Store Reporting

4 comments:

  1. You mention about earlier post but which post r u mentioing about.
    Pls let me know .

    Thanks,
    Winson.

    ReplyDelete
  2. Click on 'Content Store Reporting'
    to navigate to the earlier post.

    ReplyDelete
  3. for report net, what substitution can I make for the cmrefnoord1 references?

    ReplyDelete
  4. I'm wondering how I can query CS db to get a list of reports that belong to a specific user (duserid)? Thanks.

    ReplyDelete

Thanks for your comment.