Why do I get arithmetic overflows and 'string truncated' errors with SQL 7? I didn't with 6.5.

A. Look up the SET ANSI_WARNINGS ON/OFF command/option in the Books Online. To meet ANSI standards the default for this is on.

When it is on any numeric summarisation function with a NULL will get an error. Also trying to fit 23 characters in a 20 byte field will get the error.

Either fix the code concerned (the best option) or turn the warnings off.


Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish