Vault Store usage query for SQL
Hello all,
does anyone have an SQL query that give me the total size and number of items per archive (user)?
This can be found with the Vault Store usage report (usage.asp) but we want to run the query every day in SQL to be processed for billing.
Thanks Mario
Actually, I was wondering myself, so I came just up with this:
(Execute in Vault Store Databases EV*)
SELECT [ArchiveName], ArchivedItems, CAST(ArchivedItemsSize AS decimal(20, 0)) AS ArchivedItemsSize, ModifiedDate From view_ListVaults INNER JOIN [EnterpriseVaultDirectory].[dbo].[ArchiveView] ON view_ListVaults.ArchivePointId = [EnterpriseVaultDirectory].[dbo].[ArchiveView].[VaultEntryId]
Note: EnterpriseVaultDirectory Database and Vault Store Database have to be on the same Server for this to work.
/Michel

