The ConnectionRetryTimeout property specifies how long, in seconds, the SQL Server Compact 3.5 client will continue to retry sending failed requests.
object.ConnectionRetryTimeout(value)
Applies To
SQL Server Compact 3.5 RDA object
Generic Parameters
Parameter |
Description |
---|---|
value |
The time, in seconds, during which the SQL Server Compact 3.5 client will continue to retry an established connection that has failed. Valid values are 0 to 900 seconds, inclusive. The default value is 120 seconds. |
Data Type
short
Modifiable
Read/write
Prototype
HRESULT get_ConnectionRetryTimeout(short *pVal);
HRESULT put_ConnectionRetryTimeout(short newVal);
The ConnectionRetryTimeout property lets you specify an amount of time that the SQL Server Compact 3.5 client will try to recover from a failed connection. This property applies only to situations when the initial connection has succeeded and then the connection has been destroyed. If recovery occurs during the specified duration, the operation (Push, Pull, or SubmitSQL) continues. If the ConnectionRetryTimeout occurs before the connection is reestablished, the operation fails.
Because of other network influences, the ConnectionRetryTimeout setting is only an approximation of the actual time that will lapse before the synchronization is abandoned.
For recommendations on setting this time-out value, see Optimizing Connectivity (SQL Server Compact).