BUG: Error 22018 "Invalid Character Value for Cast Specification" with SQL Server 6.5 (269011)
The information in this article applies to:
- Microsoft SQL Server 6.5
- Microsoft Data Access Components 2.1
- Microsoft Data Access Components 2.5
This article was previously published under Q269011
BUG #: 19040 (SQLBUG_65)
SYMPTOMS
When an ODBC API function such as SQLExecute calls a stored procedure that has a call to sp_getbindtoken or that fires a trigger that has a call to sp_getbindtoken, you may see the following error message:
DIAG [22018] [Microsoft][ODBC SQL Server Driver]Invalid character value for
cast specification (0)
SQLExecute returns SQL_SUCCESS_WITH_INFO but reports the above error.
WORKAROUND
Remove the call to the sp_getbindtoken system stored procedure, or eliminate the output parameters.
STATUS
Microsoft has confirmed this to be a problem in SQL Server 6.5.
This error does not occur with SQL Server 7.0 or SQL Server 2000.
Modification Type: | Major | Last Reviewed: | 11/17/2003 |
---|
Keywords: | kbbug kbDatabase kbpending KB269011 |
---|
|