Subject | Re: Question about: SQL error code = -804 Incorrect values within SQLDA structure |
---|---|
Author | gerwinvos |
Post date | 2005-02-02T10:06:46Z |
> > Hi all,page. I
> >
> > I have a stored procedure which I try to execute from my ASP
> > have checked all the parameters and the types are correct andeven
> > when I run some simpel tests I get this error message:IB
> >
> > Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
> > Dynamic SQL Error SQL error code = -804 Incorrect values within
> > SQLDA structure
> >
> > I have found a lot of information on the internet about some old
> > bug which might be causing this, but a real answer I couldntfind.
> >something
> > My question to you is, what is going on here? Am I doing
> > wrong (is there something that needs some extra attention?) orhas
> > this still got something to do with that old bug????Here is the asp code:
> >
> > Thanks in advance
> > Gerwin
>
> show us the ASP code. I use SPs in ASP all the time with no errors.
> Alan
'create the stored produre command
Set cmd = Server.CreateObject("ADODB.Command")
Set cmd.ActiveConnection = conn
cmd.CommandText = lProcedureName
cmd.CommandType = adCmdStoredProc
cmd.Parameters.Refresh
'set the stored procedure parameters
for lCount = 0 to UBound(arrColumnnames)
if arrProcedureNames(lCount) = lProcedureName and not trim
(lProcedureName) = "" then
'create command parameters
cmd.Parameters(arrColumnNames(lCount)).Value = arrValues(lCount)
end if
next
set rs = cmd.execute
' end of code
There are no problems when I set the values for the parameters, I
only get the message when I execute the cmd. Maybe it is something
small and I just dont see it. Like I said, i have checked all of the
types and as far as I can tell, they all correspond to the types in
the database.