I would like to call a stored procedure VIA ODBC. The underlying ODBC connection may point to any database, but probably one of DB2, ORACLE, MSSQL or MYSQL.
Is there a means possible in C++ code to make a single call of the stored proc which will work for all of them. I have found so far you need to specify different statements for different products.
SQL
DB2
Thanks,
Is there a means possible in C++ code to make a single call of the stored proc which will work for all of them. I have found so far you need to specify different statements for different products.
SQL
Code:
rc = SQLPrepare(hStatement, (SQLCHAR*)"EXEC TOPSCORE (?, ?)", SQL_NTS);
DB2
Code:
rc = SQLPrepare(hStatement, (SQLCHAR*)"CALL NULLID.TOPSCORE (?, ?);", SQL_NTS);
Thanks,