Error: SQLDA missing or incorrect number/type of variables.

Abstract: Error: SQLDA missing or incorrect number/type of variables.

QUESTION:

How can I work past this error?

ANSWER:

The solution was to prepare and unprepare the storedproc with every iteration. This is a little inefficient, but not that bad because once the procedure is executed, it's cached on the server anyway.