Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Determine if ADO Connection is open

Posted on 2002-07-17
2
Medium Priority
?
436 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 150 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

In this article, I’ll look at how you can use a backup to start a secondary instance for MongoDB.
In today's business world, data is more important than ever for informing marketing campaigns. Accessing and using data, however, may not come naturally to some creative marketing professionals. Here are four tips for adapting to wield data for insi…
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…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

721 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