Hi,
I have a program which is calling a stored proc in Sybase using RDO (rdoQuery & rdoResultset). The sybase Stored proc accepts one param as input and returns a result set. My problem is the results returned are wrong some times. When I run same stored proc from ISQL the results are consistently correct. I'm expecting this is happeing because ODBC picking up results prematurely (beore sp finished processing). The SP has lots of cursor fetch statements and uses temp (#) tables, so i can't put a Begin Tran/commit in that SP.
Any help is appreciated
I have a program which is calling a stored proc in Sybase using RDO (rdoQuery & rdoResultset). The sybase Stored proc accepts one param as input and returns a result set. My problem is the results returned are wrong some times. When I run same stored proc from ISQL the results are consistently correct. I'm expecting this is happeing because ODBC picking up results prematurely (beore sp finished processing). The SP has lots of cursor fetch statements and uses temp (#) tables, so i can't put a Begin Tran/commit in that SP.
Any help is appreciated