Solved

Determine if ADO Connection is open

Posted on 2002-07-17
2
419 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
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction: I have seen many questions on EE and elsewhere, asking about how to find either gaps in lists of numbers (id field, usually) ranges of values or dates overlapping date ranges combined date ranges I thought it would be a good …
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
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…

708 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

11 Experts available now in Live!

Get 1:1 Help Now