Quantcast
Channel: Symantec Connect
Viewing all articles
Browse latest Browse all 26913

How much data in EV that is X years old ?

$
0
0
ソリューションが必要です

Hi people,

Can anyone assist me with the SQL query in regards to how much in GB of Files and Emails that has is in archive older than  X amount of years ?

I've tried this SQL Script for the past 3 years old but the result is too mixed up between Emails and Files since it is in the same EVVaultStore.

SELECT A.archivename, 
       Count(S.itemsize)      "No. Archived Items", 
       Sum(S.itemsize) / 1024 "Total Size (MB)" 
FROM   evvaultstore1.dbo.saveset S, 
       evvaultstore1.dbo.archivepoint AP, 
       enterprisevaultdirectory.dbo.root R, 
       enterprisevaultdirectory.dbo.archive A 
WHERE  S.archivepointidentity = AP.archivepointidentity 
       AND AP.archivepointid = R.vaultentryid 
       AND R.rootidentity = A.rootidentity 
       AND S.iddatetime < Dateadd(year, -3, Getdate()) 
GROUP  BY A.archivename 
ORDER  BY A.archivename 

Thanks,

 


Viewing all articles
Browse latest Browse all 26913

Trending Articles



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