I have a MS SQL DB contains set of tables each table represents a collection of variables calculated based on our formulas. All the variables are numeric with predefined percision (we are using numeric data type with n.m as n number of digits for integral part and m number of digits for fractional part).
My question is how to prevent outliers or any invalid values that violate the size of the columns? Currently we are doing simple "try catch" as ADO.net throws an exception for invalid values, is there any better way? Moreover, I want to set a valid value in this column (ie: may be zero) for this outlier. I am using C#3, MSSQL 2000 and inserting using SqlBulkCopy class.
P.S: I am asking about any solution from DB side or dotnet side