Solved

Determine if ADO Connection is open

Posted on 2002-07-17
2
432 Views
Last Modified: 2008-02-26
I thought there was an item in the ADO Connection
Properties collection that would tell me if a connection is currently open, but I can't find it.
I'm using VB6, ADO 2.6 and SQL Server 2000.

Any help is appreciated.

Phil
0
Comment
Question by:ppastor
[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 Comments
 
LVL 1

Accepted Solution

by:
Nevering earned 50 total points
ID: 7161303
The Connection's State property will tell you that.
0
 

Author Comment

by:ppastor
ID: 7161848
An "Excellent" answer would have included information regarding the ObjectStateEnum (eg. adStateOpen = 1, so If oConnection.State = adStateOpen Then ' Connection is open).
Thanks for your help !
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Lotus Notes has been used since a very long time as an e-mail client and is very popular because of it's unmatched security. In this article we are going to learn about  RRV Bucket corruption and understand various methods to Fix "RRV Bucket Corrupt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

626 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