Hi,
you can also use this sql query to also get the archive name.
Set the archiveID in the where statement, otherwise it will search it for every archive.
____________
SELECT
Archive.ArchiveName,
ArchiveFolder.FolderName,
COUNT(*) as itemsPerFolder,
Vault.ArchivedItems,
vault.ArchivedItemsSize
FROM
EnterpriseVaultDirectory.dbo.root r1
LEFT JOIN EnterpriseVaultDirectory.dbo.Root r2 on r1.RootIdentity = r2.ContainerRootIdentity
JOIN EnterpriseVaultDirectory.dbo.Archive on r1.RootIdentity = archive.RootIdentity
LEFT JOIN EnterpriseVaultDirectory.dbo.ArchiveFolder on r2.RootIdentity = ArchiveFolder.RootIdentity
RIGHT JOIN EVVSMBXStore01_1.dbo.Vault on r2.VaultEntryId = Vault.Vaultid
JOIN EVVSMBXStore01_1.dbo.ArchivePoint AP on Vault.ArchivePointIdentity = AP.ArchivePointIdentity
JOIN EVVSMBXStore01_1.dbo.Saveset on Vault.VaultIdentity = Saveset.VaultIdentity
/*use below where conditions to narrow down. If two archives have same name, use archive id
WHERE
ArchivePointId='XXXX' */
GROUP BY
Archive.ArchiveName,
ArchiveFolder.FolderName,
Vault.ArchivedItems,
vault.ArchivedItemsSize
__________
results will be like this:
archivename, Foldername, items per folder, items archived, Size of items in folder
regards