FIX: Fail to Pass NULLs as Char/Varchar When Invoking a SProcLast reviewed: May 1, 1997Article ID: Q136655 |
The information in this article applies to:
SYMPTOMSWhen a stored procedure is invoked with ODBC procedure syntax, passing NULLs as char or varchar parameters into this stored procedure will raise the following error:
szSqlState = "22005", *pfNativeError = 257, *pcbErrorMsg = 160 szErrorMsg="[Microsoft][ODBC SQL Server Driver][SQL Server] Implicit conversion from datatype 'money' to 'char' is not allowed. Use the CONVERT function to run this query." WORKAROUNDThere are two ways to avoid this problem:
STATUSMicrosoft has confirmed this to be a problem in SQL Server Driver version 2.50.0121. This problem has been corrected in SQL Server 6.0 Service Pack 2. For more information, contact your primary support provider.
MORE INFORMATIONHere are the steps to reproduce the error using ODBC Test:
|
Additional query words: ODBC NULL RPC EXECUTE
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |