ADO Connection Time-Out Length

Bob Schneider
Bob Schneider used Ask the Experts™
on
I have a visual basic 6 that relies on internet connectivity.  We use it to time races (5k, marathon, triathlon, etc).  I use the following connection string to my server:

srvr_conn.Open "Provider=SQLNCLI10;Server=216.185.199.1,1433\SQLExpress;Database=db;Uid=uid;Pwd=pwd;"

How long will this connection stay open?  Is that a server setting?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2012
Commented:
As long as you
1. Do not close it,
2. The connection object does not go out of scope
3. Your spid is not manually KILLed
4. The SQL Server does not shut down.
Bob SchneiderCo-Owner

Author

Commented:
Thanks so much.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial