Solved

ODBC Direct, Oracle, with Oracle's ODBC Driver

Posted on 1998-05-20
6
619 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month10 days, 9 hours left to enroll

628 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