|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
I am gettin this Error, from my SQL query below, what am I missing:
Arithmetic overflow error converting numeric to data type numeric Code:
SELECT FullUrl AS SiteUrl, CAST(CAST(CAST(DiskUsed AS decimal(10, 2)) / 1024 AS decimal(10, 2)) / 1024 AS Decimal(10, 2)) AS 'Total Size in MB' FROM Sites WHERE (FullUrl LIKE '%sites%') AND (FullUrl <> 'MySite') AND (FullUrl <> 'personal') |
|
#2
|
||||
|
||||
|
you only need to cast the value coming from the database. in your case DiskUsed, not the actual numbers. try this:
__________________
Come JOIN the party!!! Quote of the Month: Trouble: Luck can't last a lifetime unless you die young. Questions to Ponder: Do cemetery workers prefer the graveyard shift? iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm") copyright© 2008 sbenj69 |
![]() |
| Viewing: ASP Free Forums > Database > Microsoft SQL Server > SQL Server 2000 - Gettin Arithmetic Error with query |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|