Quantcast
Channel: Symantec Connect - Client Management Suite - Discussions
Viewing all articles
Browse latest Browse all 2021

Get folder path for everything in Jobs/Task screen

$
0
0
I need a solution

Is there a way to get the full path to everything that is not a folder? So if I right click on a task and click on Properties, I see the Folder path there. How retrieve that in SQL?

So far I have something like this, but it's definitely not accurate and I would have to do a lot more joining to get the full path:

select i1.Name,i2.Name,i3.Name from item i1
join ItemFolder ifo1 on ifo1.ItemGuid = i1.Guid
left join ItemReference ir1 on ifo1.ItemGuid = ir1.ParentItemGuid 
left join Item i2 on i2.Guid = ifo1.ParentFolderGuid
join ItemFolder ifo2 on ifo2.ItemGuid = i2.Guid
left join ItemReference ir2 on ifo2.ItemGuid = ir2.ParentItemGuid 
left join Item i3 on i3.Guid = ifo2.ParentFolderGuid
0

Viewing all articles
Browse latest Browse all 2021

Trending Articles