BlockingTimeout Property (SQL-DMO)

The BlockingTimeout property specifies a timeout interval for resource requests that are blocked due to conflicting resource lock requests.

Applies To
Application Object SQLServer Object

Syntax

object.BlockingTimeout [= value]

Part Description
object Expression that evaluates to an object in the Applies To list
value Long integer specifying a number of milliseconds

Remarks

For applications built with SQL-DMO, the default value for BlockingTimeout is 10,000 milliseconds (10 seconds).

The BlockingTimeout property determines the number of milliseconds waited when the SQL-DMO application needs sole access to a client resource. For the SQLServer object, the LoginTimeout and QueryTimeout properties control time-out behavior when an application request for a Microsoft® SQL Server™ resource is made.

An attempt to set the BlockingTimeout property to a negative value returns the setting to the default 10 seconds (10,000).

Data Type

Long

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetBlockingTimeout(LPLONG pRetVal);

HRESULT SetBlockingTimeout(long NewValue);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.