skip to main content
Using the ADO.NET Client : Specifying Connection Options : Connection Retry Count
 

Connection Retry Count

Property

ConnectionRetryCount

Description

Specifies the number of times the data provider tries to connect to the primary server, and, if specified, the alternate servers after the initial unsuccessful attempt.

Valid Values

0 to x
where x is a positive integer from 1 to 65535.
If set to 0, the data provider does not try to reconnect after the initial unsuccessful attempt.
If set to x, the data provider retries connection attempts the specified number of times. If a connection is not established during the retry attempts, the data provider returns an error that is generated by the last server to which it attempted to connect.

Default

0