Export (0) Print
Expand All

SqlSyncScopeProvisioning.CommandTimeout Property

Gets or sets the wait time, in seconds, before a provisioning command is stopped and an error is generated.

Namespace:  Microsoft.Synchronization.Data.SqlServer
Assembly:  Microsoft.Synchronization.Data.SqlServer (in Microsoft.Synchronization.Data.SqlServer.dll)

public int CommandTimeout { get; set; }

Property Value

Type: System.Int32
The wait time, in seconds, before a provisioning command is stopped and an error is generated. The default value is the default ADO.NET value of 30 seconds. Setting this value to 0 indicates that commands do not time out.

The CommandTimeout property can be useful on systems where commands might take longer to complete than expected, such as a shared system like SQL Azure. To help prevent tying up your application when it would be better to stop provisioning and try again at another time, set the CommandTimeout to an appropriate number of seconds.

Show:
© 2014 Microsoft