The Fields are set for 4 precision 2 scale decimal
@HOURHoliday [decimal](4,2),
@HOURSOT [decimal](4,2),
@HOURSREG [decimal](4,2),
@HOURSVAC [decimal](4,2),
The ado code area is
P.Append CN.CreateParameter("@HOURHoliday",adDecimal,1,4)
P.Append CN.CreateParameter("@HOURSOT",adDecimal,1,4)
P.Append CN.CreateParameter("@HOURSREG",adDecimal,1,4)
P.Append CN.CreateParameter("@HOURSVAC",adDecimal,1,4)
this code also result in the same error
P.Append CN.CreateParameter("@HOURHoliday",adDecimal,1)
P.Append CN.CreateParameter("@HOURSOT",adDecimal,1)
P.Append CN.CreateParameter("@HOURSREG",adDecimal,1)
P.Append CN.CreateParameter("@HOURSVAC",adDecimal,1)
this is where the paramater are set
CN("@HOURHoliday") = HolidayHours
CN("@HOURSOT") = OverTimeHours
CN("@HOURSREG") = RegularHours
CN("@HOURSVAC") = VacationHours
I am sure there is a problem between the stored proc and the ado pramater.
basic value I would send to all is like 10.75
D
HTH,
Bob Barrows
From http://www.developmentnow.com/g/61_2003_10_0_0_255409/0x80004005-The-precision-is-invalid-.htm
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com/g/
Is this an answer or a question?
If a question, I would guess that the precision is too small for the
data being passed via CommissionRate.
Precision = total number of digits including decimal places
NumericScale = number of decimal digits
So a decimal(3,1) parameter would allow values between -99.9 and 99.9
Also, the address for my stored procedure code generator is now:
http://common.mvps.org/barrowsb/ClassicASP_sp_code_generator.zip
--
HTH,
Bob Barrows