Solved

ADO Connection Time-Out Length

Posted on 2014-03-02
2
237 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
IF ELSE Statement in Excel Macro VBA 16 63
SQL 2008 with .NET 4.5.2 4 28
Addition to SQL for dynamic fields 6 38
SQL Server Count where two id types exist in column 8 27
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

776 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