I have encountered similar error with Count(*) and got over that by type-casting to decimal(18,0).
Attachments
Library
Quick Reference
Archives
Sample Index
2013 Indexes