APPX is the Premier Development and Runtime Environment for Business Application Software
(Answer) (Category) FAQ's - APPX Software, Inc. : (Category) APPX Utility : (Category) APPX System Administration :
Storing zero numeric values in SQL Server
I’m having trouble getting zero values into a SQL server table from APPX ... they keep getting added as nulls.
When storing values in a RDBMS, APPX normally stores a numeric value of zero as a "null" value. Conversely, when retrieving a "null" numeric value, APPX normally converts the null value to zero.

However, this default behavior can cause problems if you attempt to perform arithmetic operations on a database column using a program other than APPX unless the program anticipates the fact that a numeric column may contain null values. For example, if you add two values together and one of the values is null, the result will be null. Many SQL programs will fail if numeric null values are encountered when performing arithmetic.

The default behavior of APPX can be easily changed. If you want APPX to store numeric values of zero as zero instead of null for all database tables, you must toggle on the "Suppress Null Numerics?" option in the FMS Group definition. If this behavior only needs to be changed for selected tables, the option can be set for individual files on the "File Attributes" screen using the "File Specification" program in Database Management.

[Append to This Answer]
2004-Apr-19 9:32am
Previous: (Answer) What is the relationship between winprint.exe and winprintdll.dll?
Next: (Answer) What are the zero apps?
This document is: http://board.appx.com/cgi-bin/fom.cgi?file=340
[Search] [Appearance]
This is a Faq-O-Matic 2.719.
Copyright 2003 by APPX Software, Inc. All rights reserved.