Share via


ConnectTimeout Property (Replication)

The ConnectTimeout property specifies the time, in milliseconds, that the SQL Server Compact 3.5 client waits for a connection to the server.

Syntax

object.ConnectTimeout(value)

Applies To

SQL Server Compact 3.5 replication object

Generic Parameters

Parameter Description

value

The time, in milliseconds, during which the SQL Server Compact 3.5 client will continue to wait to establish a connection to the server. Valid values are 0 to 360 seconds. There is no default value.

Data Type

Integer

Modifiable

Read/write

Prototype

HRESULT get_ConnectTimeout(long *pVal);
HRESULT put_ConnectTimeout(long newVal);

Remarks

If a response takes longer than the value specified in ConnectTimeout, the request is canceled. When you try to connect to a server that has multiple IP addresses (multi-homed), the time-out is counted as cumulative for all the IP addresses on the server. For example, if a server has two IP addresses, spending 500 ms on the first IP and 500 ms on the second IP equals a time-out value of 1000 ms for the server.

For recommendations about how to set this time-out value, see Optimizing Connectivity (SQL Server Compact).

See Also

Reference

Replication Object Properties

Help and Information

Getting Assistance (SQL Server Compact 3.5 Service Pack 1)