Hi Ramesh,
There is no direct way to overcome this error. The best possible way is to catch the tSC error and set it to Ok
do ..Adapter.DSNSet(DataSourceName)
set sp = "{call sqlstoredprocedure(?,?,?)}"
set tSC = ..Adapter.ExecuteProcedure(.pResults, .out, sp, "iii", p1,p2,p3)
set errorText = $System.Status.GetErrorText(tSC)
if (errorText [ "Invalid cursor state")
{
set tSC = $$$OK
}
- Log in to post comments