on 02-14-2018 11:50 AM
I have attached success and trigger events in publications. I have about 2400 publication batches and I need to check each and every attachced event.
I don't want to go to each publication batch -> right click on properties -> go to events -> check manually for the name of the events, instead can I populate the details using SQL?
You want to know which events are associated with your publications? You can do it, but not in one step.
First, get the list of events with their infoobject IDs:
select si_id,si_name,si_specific_kind from ci_systemobjects where si_kind = 'event'
Next, get the recurring schedules that either wait for or fire events:
select top 10000 si_name,si_scheduleinfo.si_dependants,si_scheduleinfo.si_dependencies from ci_infoobjects where si_recurring = 1 and (si_scheduleinfo.si_dependants.si_total > 0 or si_scheduleinfo.si_dependencies.si_total > 0)
The "si_dependants" represent the events that the schedules fire when complete, "si_dependencies" are the events that the schedule waits for.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, this is only recurring instances, but it will include paused recurring instances.
To capture completed publications, change "si_recurring = 1" to "si_schedule_status in (1,3)".
Thanks Joe, you helped a lot.
One more question? If I need the destination path for all recurrences, how can I get it?
When I run
SELECT * FROM CI_INFOOBJECTS WHERE SI_KIND='Publication' AND SI_ID='XXXXXX'
I can see the required destination path at SI_DESTINATIONS -> SI_OUTPUT_FILES -> 1 and there is my required path.
I require that path for all recurring batches just like I got the tagged events.
Could you please help me with that? I really appreciate your help.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.