ADO ConnectionTimeout Property

Definition and Usage

The ConnectionTimeout property can set or return the number of seconds to wait before terminating the attempt and generating an error when opening a connection. The default is 15 seconds.

Syntax

objconn.ConnectionTimeout

Example

<%
set conn=Server.CreateObject("ADODB.Connection")
conn.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0"
conn.ConnectionTimeout=30
conn.open server.mappath("database.mdb")
conn.close
%>