Export (0) Print
Expand All
Expand Minimize

setLockTimeout Method (SQLServerDataSource)

Sets an int value that indicates the number of milliseconds to wait before the database reports a lock time out.


public void setLockTimeout(int lockTimeout)

lockTimeout

An int value that contains the number of milliseconds to wait.

The lock time out is the number of milliseconds to wait before the database reports a lock time out. The default value of -1 means that it will wait indefinitely. If specified, this value will be the default for all statements on the connection.

Note Note

A value of 0 means no wait. If the lockTimeout property is not set, the getLockTimeout method returns the default value of -1.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft