S
stuart
Hi,
I am having a problem with a stored procedure. I am getting the
following error
ADODB.Command error '800a0d5d'
Application uses a value of the wrong type for the current operation.
/myproofs/includes/functions.asp, line 183
I have higlighted line 183 with #######
FUNCTION addPublication(strName, dtCreationDate,dtDeadlineDate,blnOpen)
Dim objComm
set objComm = server.CreateObject("ADODB.Command")
objComm.activeConnection = objConn
objComm.CommandText = "Insert_Add_Publication"
objComm.CommandType = adCmdStoredProc
objComm.Parameters.Append
objComm.CreateParameter("@tblPublicationName",
adVarChar,adParamInput,50,strName)
objComm.Parameters.Append
######objComm.CreateParameter("@tblPublicationCreationDate",
adDBDate,adParamInput,4,dtCreationDate)
objComm.Parameters.Append
objComm.CreateParameter("@tblPublicationOpen", adTinyInt,adParamInput,
,blnOpen)
objComm.Parameters.Append
objComm.CreateParameter("@tblPublicationDeadLine",
adDate,adParamInput,4,dtDeadlineDate)
objComm.Execute
set objComm = nothing
END FUNCTION
Many thanks
for any help recieved.
Stuart
I am having a problem with a stored procedure. I am getting the
following error
ADODB.Command error '800a0d5d'
Application uses a value of the wrong type for the current operation.
/myproofs/includes/functions.asp, line 183
I have higlighted line 183 with #######
FUNCTION addPublication(strName, dtCreationDate,dtDeadlineDate,blnOpen)
Dim objComm
set objComm = server.CreateObject("ADODB.Command")
objComm.activeConnection = objConn
objComm.CommandText = "Insert_Add_Publication"
objComm.CommandType = adCmdStoredProc
objComm.Parameters.Append
objComm.CreateParameter("@tblPublicationName",
adVarChar,adParamInput,50,strName)
objComm.Parameters.Append
######objComm.CreateParameter("@tblPublicationCreationDate",
adDBDate,adParamInput,4,dtCreationDate)
objComm.Parameters.Append
objComm.CreateParameter("@tblPublicationOpen", adTinyInt,adParamInput,
,blnOpen)
objComm.Parameters.Append
objComm.CreateParameter("@tblPublicationDeadLine",
adDate,adParamInput,4,dtDeadlineDate)
objComm.Execute
set objComm = nothing
END FUNCTION
Many thanks
for any help recieved.
Stuart