Solved

Determine if ADO Connection is open

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Exchange 2010 Database wont mount 3 59
Mongo DB 18 69
How to fix Datetime in MySQL? 4 64
partitioning database after decade growth 8 54
SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
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…

713 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