Quantcast
Channel: Symantec Connect - - Discussions
Viewing all articles
Browse latest Browse all 2445

EV SQL Query to show Archive Size Info and User Mapping

$
0
0
I need a solution

I have 2 sql queries, 1 which shows a list of all my archives and their sizes:

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]

and one which shows 

Mailbox name and the excahneg info for that archive:

 

SELECT EME.MbxDisplayName "Mailbox Name",
  ESE.ExchangeComputer "Exchange Server",
       EMS.Name "Exchange Database",
       EME.AdMbxDN "AD Details",
       VSE.VaultStoreName "Vault Store"
FROM   ExchangeMailboxEntry EME,
       ExchangeMailboxStore EMS,
       ExchangeServerEntry ESE,
       Root R,
       Archive A,
       VaultStoreEntry VSE
WHERE  EME.MbxStoreIdentity = EMS.MbxStoreIdentity
  AND  EMS.ExchangeServerIdentity = ESE.ExchangeServerIdentity
  AND  EME.DefaultVaultId = R.VaultEntryId
  AND  R.RootIdentity = A.RootIdentity
  AND  A.VaultStoreEntryId = VSE.VaultStoreEntryId
ORDER BY ESE.ExchangeComputer, EMS.Name, EME.MbxDisplayName

Ideally i would like to combine these 2 to show the archive name size or archive number of items modified data and the billing username or smtp adderss associated with the archive.

Any help please?

 

8395571
1361533790

Viewing all articles
Browse latest Browse all 2445

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>