Ask a Question related to ASP Database, Design and Development.
-
DJP #1
0x80004005: The precision is invalid.
Hi,
I am Tring to send a decimal to a SQL stored Procedure and get a The
precision is invalid.
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
DJP Guest
-
0x80004005 error
Hi I am getting an unspecified 0x80004005 error accessing my access db. What steps can I take to find out where the problem lies? Thanks ... -
Jet Error 0x80004005
http://www.aspfaq.com/show.asp?id=2009 "Si" <nospam@nospam.com> wrote in message news:%23G6CY3knDHA.1708@TK2MSFTNGP12.phx.gbl... or be -
ASP 0105 (0X80004005)
Someone coud help me about this message: Error Type: Request object, ASP 0105 (0x80004005) An array index is out of range.... -
Error 0x80004005
Hi all... in first I'm sorry for my english... I've a problem... I work on pc with win xp pro and for testing my website I use iis and odbc... -
Error Type: 0x80004005
Hi all, I am supposd to be teaching DWMX right now and have broke for an early lunch as we are having problems with: Error Type: Provider... -
Bob Barrows #2
Re: 0x80004005: The precision is invalid.
You cannot set the precision and scale properties in the CreateParameter
method. Those Parameter properties need to be set after the Parameter is
completed. You may want to try my Stored Procedure Code generator. It is
available here:
[url]http://www.thrasherwebdesign.com/index.asp?pi=links&hp=links.asp[/url]
HTH,
Bob Barrows
DJP wrote:> Hi,
> I am Tring to send a decimal to a SQL stored Procedure and get a
> The precision is invalid.
>
> 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
Bob Barrows Guest



Reply With Quote

