08-11-2015 08:43 AM
We have our EV servers that are pointing to SQL servers for the database. When I want to see how much space a certain user is using in EV, I go to the EV server they're provisioned on and opened a web browser and browse to http://localhost/enterprisevault/usage.asp. It takes forever for this page to load. Does anyone have a good SQL query I could just run from the SQL server that would return the same information and I could return it for just one user instead of every user provisioned on that server?
Solved! Go to Solution.
08-11-2015 02:24 PM
You could use this:
--This gives the archive name and size of archive in MB
--Runs against the VaultStore DatabaseSELECT ex.MbxDisplayName,
a.archiveditems as Count, (a.archiveditemsSize/1024) as 'Size'FROM Saveset s
Join Archivepoint a on a.ArchivePointIdentity =s.ArchivePointIdentity
Join EnterpriseVaultDirectory.dbo.ExchangeMailboxEntry ex on ex.DefaultVaultID = a.ArchivePointIDWHERE ex.MbxDisplayName = 'My.User'
GROUP BY ex.MbxDisplayName, a.archiveditems, a.archiveditemssize
08-11-2015 02:24 PM
You could use this:
--This gives the archive name and size of archive in MB
--Runs against the VaultStore DatabaseSELECT ex.MbxDisplayName,
a.archiveditems as Count, (a.archiveditemsSize/1024) as 'Size'FROM Saveset s
Join Archivepoint a on a.ArchivePointIdentity =s.ArchivePointIdentity
Join EnterpriseVaultDirectory.dbo.ExchangeMailboxEntry ex on ex.DefaultVaultID = a.ArchivePointIDWHERE ex.MbxDisplayName = 'My.User'
GROUP BY ex.MbxDisplayName, a.archiveditems, a.archiveditemssize