Displaying 1 result from an estimated 1 matches for "bindreturncod".
Did you mean:
bindreturncode
2007 Apr 18
1
How to call stored procedure on iodbc
...t my stored procedure takes 6 parameters out of
which 1 parameter is out parameter and other 5 are input parameters.
So it uses 5 IN parameters as values for inserting a row in database
and returns its max id as out parameter.
Code Snippet is given below :--
SWORD returnCode = 0;
SDWORD bindReturnCode = 0;
RETCODE returnVal;
char sqlString[500];
memset(sqlString,0,sizeof(sqlString));
HSTMT hstmt = ptrDB->GetHSTMT();
returnVal = SQLAllocStmt(ptrDB->GetHDBC(), &hstmt);
if (returnVal == SQL_SUCCESS)
{
returnVal = SQLBindParameter(hstmt, 1, SQL_PARAM_...