Problem
At times it may be required to check the number of items which are archived in a particular user's archive.
Solution
Method 2a: - All users
1. Run the query below:
Note: Replace VaultStoreDatabase with the name of the database for the vault store
USE VaultStoreDatabase
SELECT AV.ArchiveName, vAP.ArchivedItems
FROM view_ArchivePoint vAP INNER JOIN
EnterpriseVaultDirectory.dbo.ArchiveView AV ON AV.VaultEntryId = vAP.ArchivePointId
ORDER BY ArchivedItems ASC
This will return all mailbox archives with the number of archived items.
Method 2b - Specific User:
To locate a specific user:
- Open the Enterprise Vault Administration Console.
- Expand Directory - Site - Archives and select the relevant container where the archive resides.
- Find the archive for the specific user.
- Double click on the archive.
- Click on the Advanced Tab.
- Copy the Archive ID value.
- Launch Microsoft SQL Server Management Studio and run the below query to check the 'number of savesets' which have been archived for a particular archive.
Note: Replace VaultStoreDatabase with the name of the database for the vault store and replace ' ArchiveIDFromConsole' with the Archive ID copied previously.
USE VaultStoreDatabase
SELECT AV.ArchiveName, vAP.ArchivedItems
FROM view_ArchivePoint vAP INNER JOIN
EnterpriseVaultDirectory.dbo.ArchiveView AV ON AV.VaultEntryId = vAP.ArchivePointId
WHERE vAP.ArchivePointId = 'ArchiveIDFromConsole'