Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Execute Oracle stored procedure
Here is part of my code :
SqlTxt = "execute tstproc('ocadm')" retcode = qExecDirect(hstmt, SqlTxt)
the retcode is -1 and the message returned by qError(hstmt, 2) is :
37000 [Oracle][ODBC Oracle Driver][Oracle OCI]ORA-00900: Instruction SQL invalid.
When I type the same command : execute tstproc('ocadm') with SQL worksheet or SQL + 3.3, it works fine
Any idea ?
You mentioned you are trying to execute a stored procedure I wonder if it has anything to do with the quotes. Maybe the stored procedure requires double quote instead of the single quotes you specified.
Also instead of the word 'execute', try {call stored_procedure).
SqlTxt = '{call tstproc("ocadm")}' retcode = qExecDirect(hstmt, SqlTxt)
{call tstproc('ocadm')}
Article ID: W14538
Filename: Execute an Oracle stored procedure.txt
File Created: 2001:01:29:14:10:44
Last Updated: 2001:01:29:14:10:44