PRB: Implicit Conversion Error Calling Second Stored ProcedureLast reviewed: December 17, 1997Article ID: Q178038 |
The information in this article applies to:
SYMPTOMSThe following error occurs when you execute an Active Server Pages (ASP) page that is making subsequent stored procedure calls:
Implicit conversion from the datatype 'varchar' to 'int' is not allowed. Use the convert function to run this query. CAUSETwo conditions that cause this error to occur are as follows:
RESOLUTIONDelete the parameter(s) in question using the "Delete" method of the collection object.
collection.Delete IndexThe collection placeholder represents the collection from which you want to delete an object. The Index argument is a string representing the name of the object you want to delete. The Index in the syntax above works only for named parameters; a numeric index does not work. In other words, you must name your parameter when you use CreateParameter to create the parameter. If you use the DataCommand control in Visual InterDev to add the code necessary to accomplish the stored procedure call, Visual InterDev inserts code to re-create the Command object. This is a valid approach, but it does add overhead of re-creating the object.
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce Behavior
Keywords : VIADO Technology : kbInetDev Version : WINDOWS:1.0; WINNT:1.0,1.0b Platform : WINDOWS winnt Issue type : kbprb |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |