The information in this article applies to:
BUG #: 17172 (Windows: 6.5) SYMPTOMS
When you attempt to call sp_OAMethod, you may receive either of the
following errors:
Either of these messages can be returned if your variable has not been initialized or contains a value of NULL. If the datatype you are passing is not a string datatype, it cannot be passed by reference. Attempting to pass values other than string by reference results in the "Type mismatch" error. WORKAROUND
To work around this problem, do any one of the following:
STATUSMicrosoft has confirmed this to be a problem in SQL Server version 6.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATION
The following script produces the "Bad Variable Type" error.
If you initialize the @strInfo to "", the problem is avoided. The following is a simple Visual Basic object method. It attempts to accept the integer value ByRef.
The following script attempts to invoke the method but ends with the "Type mismatch" error.
Additional query words: data type VB
Keywords : kbcode SSrvProg kbbug6.50 |
Last Reviewed: April 19, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |