TransSynchronizationAgent.QueryTimeout Property

Gets or sets the number of seconds that are allowed for internal queries to complete.

Namespace:  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Replication (in Microsoft.SqlServer.Replication.dll)

Syntax

'Declaration
Public Overridable Property QueryTimeout As Integer 
    Get 
    Set
'Usage
Dim instance As TransSynchronizationAgent 
Dim value As Integer 

value = instance.QueryTimeout

instance.QueryTimeout = value
public virtual int QueryTimeout { get; set; }
public:
virtual property int QueryTimeout {
    int get ();
    void set (int value);
}
abstract QueryTimeout : int with get, set 
override QueryTimeout : int with get, set
function get QueryTimeout () : int 
function set QueryTimeout (value : int)

Property Value

Type: System.Int32
The number of seconds that are allowed for internal queries to complete.

Implements

ITransSynchronizationAgent.QueryTimeout

Remarks

The default value for QueryTimeout is 30.

Setting a value of 0 for QueryTimeout means that a query will never time out.

See Also

Reference

TransSynchronizationAgent Class

Microsoft.SqlServer.Replication Namespace