Solved

ADO Connection Time-Out Length

Posted on 2014-03-02
2
242 Views
Last Modified: 2014-03-03
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?
0
Comment
Question by:Bob Schneider
2 Comments
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 500 total points
ID: 39899557
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.
0
 

Author Closing Comment

by:Bob Schneider
ID: 39900038
Thanks so much.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

856 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