Forum Discussion
- JesusWept3Level 6
Try this, not sure how accurate it would be, i just knocked it up so hopefully it's alright
caveat is that it only resolves active users mailboxes and not archives, but it can be tweaked to do that, was just easier this way :)
SELECT EME.mbxDisplayName AS MailboxName,
LEFT(convert(varchar, S.archiveddate,120),4) AS ArchivedDate,
COUNT(S.ArchivedDate) AS ArchivedAmountFROM yourVaultStore.dbo.saveset S,
yourVaultStore.dbo.Archivepoint AP,
EnterpriseVaultDirectory.dbo.ExchangeMailboxEntry EMEWHERE S.ArchivePointIdentity = AP.ArchivePointIdentity
AND AP.ArchivePointId = EME.DefaultVaultIDGROUP BY EME.mbxDisplayName, LEFT(CONVERT(varchar, ArchivedDate,120), 4)
ORDER BY MailboxName ASC, ArchivedDate ASC
Related Content
- 5 years ago
- 8 months ago
- 10 months ago
- 6 months ago