Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
Command Object
CommandTimeout Property
Connection Object
PROPERTY: Connection::ConnectionTimeout
string =
connectionobject.
ConnectionTimeout
connectionobject.
ConnectionTimeout
= string
The
ConnectionTimeout
property sets or returns how many seconds to wait before cancelling a connection attempt and generating an error. The default is fifteen seconds. However, heavy server use or high network traffic can easily cause delays greater than fifteen seconds. If you set
ConnectionTimeout
equal to zero seconds, the program will wait indefinitely or until the connection is completed.
This property must be set before the connection is established.
Code (VBScript):
Dim objConnection
Set objConnection = Server.CreateObject("ADODB.Connection")
objConnection.ConnectionString =
"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=GuruList"
objConnection.
ConnectionTimeout
= 0
objConnection.Open
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information