Quantcast
Channel: Symantec Connect - Archiving and eDiscovery - Discussions
Viewing all articles
Browse latest Browse all 3821

SQL query issue

$
0
0
Oui, j'ai besoin d'une solution

I am runnign this SQL query:

 

select

datepart(yy,archiveddate) as 'year',

datepart(mm,archiveddate) as 'month',

count(*) as 'items',

sum(itemsize)/1024/1024 as 'GB archived'

from saveset

where archiveddate > getdate() - 60

group by datepart(yy,archiveddate),

datepart(mm,archiveddate)

order by

datepart(yy,archiveddate) desc,

datepart(mm,archiveddate) desc

 

but getting this error : Msg 8115, Level 16, State 2, Line 1 Arithmetic overflow error converting expression to data type int.

 

iv read somethign about casting ? Can anyone advise here please?

 

Many Thanks

greg 


Viewing all articles
Browse latest Browse all 3821

Trending Articles



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