Here's a simple test for the floating point stuff. Works fine, fails safe, and drains to the bilge. 😛
[font="Courier New"] SELECT STR(FLOOR(d.N*100)/100,4,2), COUNT(*)
FROM (
SELECT TOP 1000000
RAND(CHECKSUM(NEWID())) * 5 AS N
FROM Master.dbo.SysColumns sc1
CROSS JOIN Master.dbo.SysColumns sc2
)d
GROUP BY STR(FLOOR(d.N*100)/100,4,2)
ORDER BY STR(FLOOR(d.N*100)/100,4,2)[/font]
--Jeff Moden
Change is inevitable... Change for the better is not.