PROPERTY:

 

 

 

 

 

 

 

DESCRIPTION:

 

 

Indicates, in seconds, how long to wait while establishing a connection before terminating the attempt and issuing and error.

 

 

 

 

PROPERTY OF:

 

 

ADODatabase

 

 

 

 

DEFAULT VALUE:

 

 

15

 

 

 

 

 

DESCRIPTION:

 

 

Use the connectionTimeout property if delays from network traffic or heavy server use make it necessary to abandon a connection attempt.

 

If the time from the connectionTimeout property setting elapses prior to the opening of the connection, an error occurs and ADO cancels the attempt.

 

If you set the property to zero, ADO will wait indefinitely until the connection is opened.

 

Make sure the provider to which you are writing code supports the connection time-out functionality.

 

 

 

This property is read/write when the ADODatabase object is closed and read-only when it is open.

 

 

 

If a connection is successfully made prior to the expiration of the seconds specified or the cancel() method is called, connectionTimeout has no effect. 

 

If the specified time expires and a connection has not been successfully made, the attempt is terminated and an exception is thrown.

 

 

 

You can control the amount of time that can elapse before attempted connections are considered failed and are aborted.

 

The connectionTimeout specifies the amount of time, in seconds, before an attempt to connect to the data store times out. 

 

If the connection does not successfully compile prior to expiration of the time specified in connectionTimeout, the connection attempt is canceled.