Re: Unable to pass DBDATE to stored-proc using ADO/C++



asnowfall@xxxxxxxxx wrote:
I am trying to pass DBDATE to a stored procedure but raw_Execute() is
failing with DB_E_ERRORSOCCURRED.

pParameter = pCmd->CreateParameter(_bstr_t("@e_date"),
adDate,adParamInput,sizeof(double));

The correct datatype for datetime parameters is adDBTimestamp, not adDate
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


.



Relevant Pages