Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2007
    Posts
    1

    Unanswered:

    Is it any way in Sybase procedure to handle "Arithmetic overflow" error?
    I am using integer Date format - YYYYMMDD. I am trying to convert it into datetime. If there is a wrong date (20070230), I cannot handle it with
    "if (@@error != 0)" . Instead it gives me message "Arithmetic overflow occurred.". Should I create my own function to check the date (year, mon, day - all separately)?

  2. #2
    Join Date
    May 2005
    Location
    South Africa
    Posts
    1,365
    Provided Answers: 1
    set arithabort off

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •