Bizarre error with cmd.CreateParameter

A

audleman

I am trying to pass a text string into a stored procedure via a
parameter, and am getting the baffling error:
adErrDataConversion 3421 You are using a value of the wrong type for
the current operation.

I know for sure that the data type I've selected is correct. The code
looks like this:

Set plsShare = cmd.CreateParameter("@shareIdeas", adVarChar,
adParamInput, 500, trim(Request("Please share your ideas")))

The crazy thing is that it only throws this error 1/20 times the
procedure is submitted. The last time it failed, the text string passed
in was:

always share a brief inspirational reading/statistic at beginning or
end of the class and establish a theme around which you teach your
material. Everything has a story.

Can anybody explain this error?

Thank you,
Kevin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top