Re: ODBC 3.0 issue - HY003 Program type out of range
- From: "Arnie" <none>
- Date: Thu, 8 Jun 2006 11:46:43 -0400
"> DATE_STRUCT dsOpenDate;
SQLINTEGER cbOpenDate = 0;
SQLBindParameter (hstmt, 3, SQL_PARAM_INPUT, SQL_C_TYPE_DATE,
SQL_TYPE_DATE,
0, 0, &dsOpenDate, 0, &cbOpenDate);
NOTE: This is from the sample in MS Help page:
ms-help://MS.VSCC.2003/MS.MSDNQTR.2005OCT.1033/odbc/htm/odbcsqlbindparameter.htm
So, according to the error, SQL_C_TYPE_DATE is not valid.
Try
SQL_C_TYPE_TIMESTAMP
- Arnie
.
- Prev by Date: RE: "Invalid number of parameter markers" when executing SQL command
- Next by Date: Re: "Invalid number of parameter markers" when executing SQL command
- Previous by thread: Anzahl der Datensätze bei SELECT
- Next by thread: How to detect runtime error in stored procedure invoked via SQLExecute or SQLExecDirect?
- Index(es):