modemis
12 years agoLevel 3
Need a SQL script to determine how much compressed and uncompressed size of all archives.
Hello all.
Can anyone help with a request? I need a SQL query to give me a total of compressed and uncompressed data that resides in vault stores. The customer wants to find out how big the data will grow if they migrate all to PST files.
Thank you ahead of time.
Melih
This should work for you, just replace EVVSYourVaultStore_1 with the name of your Vault Store Database
SELECT A.ArchiveName "Archive Name", SUM(S.ItemSize)/1024 "Compressed Size (MB)", SUM(SP.OriginalSize)/1024/1024 "Uncompressed Size (MB)" FROM EnterpriseVaultDirectory.dbo.Archive A, EnterpriseVaultDirectory.dbo.Root R, EVVSYourVaultStore_1.dbo.ArchivePoint AP, EVVSYourVaultStore_1.dbo.Saveset S, EVVSYourVaultStore_1.dbo.SavesetProperty SP WHERE A.RootIdentity = R.RootIdentity AND R.VaultEntryId = AP.ArchivePointId AND AP.ArchivePointIdentity = S.ArchivePointIdentity AND S.SavesetIdentity = SP.SavesetIdentity GROUP BY A.ArchiveName ORDER BY A.ArchiveName