Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Fix for ODBC, ADODB, VBA hangs when setting recordset variable to nothing

imarvintpaMay 25 2017

Hello,

I need help.  I have a Classic ASP application that connects to the Oracle 11 database using Oracle 11 ODBC driver through MS ADODB.

The application will freeze when I set a writable recordset object to nothing or another recordset.

IE

set rs = Server.CreateObject("ADODB.RecordSet")

rs.open sql, conn, adOpenDynamic, adLockPessimistic

'do stuff

rs.close

set rs = nothing 'Hangs on this statement, never continuing.

response.write "This line never gets served."

Or

set rs = Server.CreateObject("ADODB.RecordSet")

rs.open sql, conn, adOpenDynamic, adLockPessimistic

'do stuff

rs.close

set rs = conn.execute(sql2)  'Hangs here too.

response.write "This line never gets served."

What is the fix for this?

Thanks,

Andy Bay

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 22 2017
Added on May 25 2017
0 comments
1,079 views