Fix datatype conversion

This commit is contained in:
zensqlmonitor 2016-04-23 09:14:04 +02:00
parent 5b1e59a48c
commit 93f5b8cc4a
1 changed files with 1 additions and 1 deletions

View File

@ -1052,7 +1052,7 @@ SELECT
When 1073874176 Then IsNull(Cast(cc.cntr_value - pc.cntr_value as Money) / NullIf(cbc.cntr_value - pbc.cntr_value, 0), 0) -- Avg When 1073874176 Then IsNull(Cast(cc.cntr_value - pc.cntr_value as Money) / NullIf(cbc.cntr_value - pbc.cntr_value, 0), 0) -- Avg
When 272696320 Then IsNull(Cast(cc.cntr_value - pc.cntr_value as Money) / NullIf(cbc.cntr_value - pbc.cntr_value, 0), 0) -- Avg/sec When 272696320 Then IsNull(Cast(cc.cntr_value - pc.cntr_value as Money) / NullIf(cbc.cntr_value - pbc.cntr_value, 0), 0) -- Avg/sec
When 1073939712 Then cc.cntr_value - pc.cntr_value -- Base When 1073939712 Then cc.cntr_value - pc.cntr_value -- Base
Else cc.cntr_value End as int) Else cc.cntr_value End as bigint)
--, currentvalue= CAST(cc.cntr_value as bigint) --, currentvalue= CAST(cc.cntr_value as bigint)
FROM #CCounters cc FROM #CCounters cc
INNER JOIN #PCounters pc On cc.object_name = pc.object_name INNER JOIN #PCounters pc On cc.object_name = pc.object_name