CommandTimeout does not inherit from Connection timeout (195489)
The information in this article applies to:
- Microsoft Data Access Components 1.5
- Microsoft Data Access Components 2.0
- Microsoft Data Access Components 2.1 SP2
- Microsoft Data Access Components 2.5
- Microsoft Data Access Components 2.6
- Microsoft Data Access Components 2.7
- Microsoft Data Access Components 2.8
This article was previously published under Q195489 SYMPTOMS
If a Connection's CommandTimeout property is set to some value and a
Command object is associated to that Connection, the Command object does
not pickup the Connection's CommandTimeout setting. Instead, the Command
object's CommandTimeout is set to its default setting or whatever it was
set to prior to being associated with the Connection.
CAUSE
ActiveX Data Objects (ADO) does not practice inheritance. Due to the stand
alone capability of its objects, a Command object can be associated with
more than one Connection object. The one exception is the CursorLocation
property.
RESOLUTION
Specifically set the Command object's CommandTimeout.
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 7/6/2006 |
---|
Keywords: | kbDatabase kbprb KB195489 |
---|
|