FIX: Fail to Pass NULLs as Char/Varchar When Invoking a SProcID: Q136655
|
When 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."
There are two ways to avoid this problem:
Microsoft 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.
Here are the steps to reproduce the error using ODBC Test:
Additional query words: ODBC NULL RPC EXECUTE
Keywords : kbprg SSrvProg SSrvStProc kbbug2.50.0121 kbbug6.00 kbfix6.00.sp1
Version : 2.5.0121 6.0
Platform : WINDOWS
Issue type :
Last Reviewed: April 19, 1999