The ConnectionRetryTimeout property specifies how long, in seconds, the SQL Server Compact 3.5 client will continue to retry sending requests after an established connection has failed.

object.ConnectionRetryTimeout [= value]

Applies To

SQL Server Compact 3.5 Replication object

  • value
    The time, in seconds, during which the SQL Server Compact 3.5 client will continue to retry a failed synchronization. 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 synchronization. If recovery occurs during the duration, synchronization continues. If the connection retry timeout occurs before the connection is reestablished, synchronization fails.

The ConnectionRetryTimeout value is only used when an established connection has failed. It is not used when first establishing a connection.

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).

Reference

Replication Object Properties