Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

meanings of error messages

Status
Not open for further replies.

rrajarat

MIS
Oct 8, 2002
42
US
I get the following error message when I try to execute a stored procedure. What doe it mean. The message comes up at the very beginning where the parameters are being recieved.

[Microsoft][ODBC SQL Server Driver]Invalid character value for cast specification
 
It looks like you are tring to send the wrong kind of data to the Stored procedure, Check all your input variables

eg.
sp_check '1', '23-23-2002',1

sp_check @val1 as interger, @val2 as datetime, @val3 as varchar(1)

All these values will fail as they cannot be converted to the correct types.

The correct syntax should be

sp_check 1, '23-09-2002,'1'

Hope this helps,

Chris Dukes
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top