BUG: ADO Parameters Refresh May Cause Failure (183008)
The information in this article applies to:
- ActiveX Data Objects (ADO) 1.0
- ActiveX Data Objects (ADO) 1.5
- ActiveX Data Objects (ADO) 2.0
- ActiveX Data Objects (ADO) 2.1 SP2
- ActiveX Data Objects (ADO) 2.5
- ActiveX Data Objects (ADO) 2.6
- ActiveX Data Objects (ADO) 2.7
- ActiveX Data Objects (ADO) 2.8
- Microsoft Data Access Components 2.8
This article was previously published under Q183008 SYMPTOMS Invoking Parameters.Refresh may incorrectly return the wrong direction value for some
parameters in the Parameters collection. When attempting to execute the Command
Object for a parameterized query you may encounter thefollowing error message:
0x80040005 (or -2147467259). Unable to determine
parameter type for at least one variant parameter. CAUSE This is due to a bug in ActiveX Data Objects (ADO) 1.x.
RESOLUTION In the case shown in the MORE INFORMATION section,
explicitly setting the direction of the parameter object will correct the
problem. STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed at the beginning of this article.
This error will not occur when using ADO 2.x.
The command object executes the stored procedure without error. However, the
cmd(0).Direction is still returned incorrectly as adParamOutPut(2) and not
adParamReturnValue(4).
Modification Type: | Minor | Last Reviewed: | 3/2/2005 |
---|
Keywords: | kbado270fix kbbug kbDatabase kbfix kbmdac270fix kbStoredProc KB183008 |
---|
|