Can't complain. ODBC has only but a few flaws, it provides a great interface. You may need to use the ExecSQL() query. Another Link.
Ah, gracious nbaztec are you talking about something like that:
...
rc = SQLAllocHandle( SQL_HANDLE_STMT, hDbc, &hStmt);
SQLCHAR sqlStatement[] = "SELECT pName, convert(char(20), pDate, 104), quantity, salesprice "
"FROM products WHERE PID = ?;";
...
prodID = prod_ID;
rc = [B][U]SQLExecDirect( hStmt, sqlStatement, SQL_NTS )[/U][/B];
...
rc=SQLGetData(hStmt, 4, SQL_C_FLOAT, &oldSalesPrice, 0, 0); printf("\nSales price %8.2f", oldsalesprice);
...
Interested in getting to know what the ... stand for? btw, with minor changes (e.g. date conversion) complete code runs on MS SQL server 2008, Sybase, Oracle, DD2, SQL Anywhere, PostgreSQL ...
-- tesu