What is the easiest way to call a stored procedure on a DBMS with a
SQLExecDirect function through ODBC.
The old way to call a stored procedure with PB6.5.1 is SQLExecDirect but
now with PB8.0.1 use a SQLPrepare and different call to update the
parameters. The DBMS I use does not support this.
Thanks,
I am not sure exactly what you are trying to achieve, but why can't you just
execute the stored procedure using dynamic SQL ?
Perhaps you could post a few additional details, such as what DBMS you are
using and the code you use to execute the stored proc.
Sanjiv.
<PicheBert> wrote in message
news:09A95E4D79A853D400537AAF85256D60.00537AFB85256D60@webforums...
I am connected to a NonStop SQL on a Tandem hardware.
The problem is related to way who PB 8 make a call to the DBMS. The old
version of PB 6.5.1 with a SQL Embeded create a Execdirect for the stored
procedure. And that work fine.
PB 8.0.1 make the same call totaly different. PB 8.0.1 call a SQL Prepare
and for each parameter, PB8 make a SQLBindParameter. At the first
SQLBindPrarmeter ODBC make an error 'Incompatible type'.
If you have any suggestion.
Jim O'Neil
Principal Technical Support Engineer
Sybase, Inc.
Concord, MA
Does not work, the error still there.
Thanks,
Make certain that you do not include DisableBind inside of the
ConnectString - they are two distinct DBParms.
Jim O'Neil
Sanjiv.
<Pichebert> wrote in message
news:1F79EB7B835A7A7500704A5485256D63.007003BD85256D63@webforums...