Solved

ODBC Direct, Oracle, with Oracle's ODBC Driver

Posted on 1998-05-20
6
615 Views
Last Modified: 2011-10-03
All,

I am attempting to use ODBC Direct to hit the oracle database.  Everything works correctly for the first recordset opened, and then when I attempt to open another recordset (whether or not the first one is closed), the program hangs.  The ODBC Direct calls are correct (I open a workspace and then a connection).  It doesn't matter if I call the queries ASYCH or not, it still hangs..

Any suggestions?
0
Comment
Question by:anthonyc
  • 2
  • 2
  • 2
6 Comments
 
LVL 6

Expert Comment

by:clifABB
ID: 1455649
If I read your question correctly, are you opening a second workspace (hence a second connection) for the second recordset?
If so, don't.
0
 
LVL 6

Expert Comment

by:clifABB
ID: 1455650
The above was posted as a comment.  If it solves your problem, let me know and I'll resubmit it as an answer.
0
 
LVL 6

Author Comment

by:anthonyc
ID: 1455651
No...... That's not what I am doing.  I am opening 1 workspace, 1 Connection, many recordsets.

I tried substituting Intersolv's driver, no luck.  I wrote a little test program using ODBC Direct on 1 form, RDO ont he other.  RDO works perfectly, ODBC direct hangs
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 5

Expert Comment

by:bin_huwairib
ID: 1455652
anthonyc,

Try to set QueryTimeout property to zero after you open the conneciton.

Example
=======
 Set Cn = Ws.OpenConnection("", dbDriverNoPrompt, False, strConn)
 Cn.QueryTimeout = 0


Bin Huwairib
0
 
LVL 6

Author Comment

by:anthonyc
ID: 1455653
resubmit that as an answer, it seemed to work.

Anthony
0
 
LVL 5

Accepted Solution

by:
bin_huwairib earned 200 total points
ID: 1455654
anthonyc,

Try to set QueryTimeout property to zero after you open the conneciton.

Example
=======
 Set Cn = Ws.OpenConnection("", dbDriverNoPrompt, False, strConn)
 Cn.QueryTimeout = 0


Best regards
Bin Huwairib
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
DO Loop not working 4 72
change vba from autofit to 13.5 width? 4 28
MS Access - Capture pressed key onclick 4 28
Passing a Text Box name to a Sub 6 74
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now