I occassionally get this error message : Difference of two datetime fields caused overflow at runtime. I have used DATEDIFF in my SP and have declared the result variable as int. Have also tried converting the DATEDIFF to float. Any ideas ?
In what format is your datefields stored? Sanette SQL Developer JustEnough Software Corporation quote:Walking on water and coding of a spec is easy, as long as both are frozen - A friend
Command failed due to invalid or illegal request. Check syntax, semantics, and permissions. The result of the DATEDIFF function may be too large. _________ Satya SKJ Moderator SQL-Server-Performance.Com