I am using Sybase DB and using dblib interface( C++ Interface) to connect and pass commands to Sybase DB. I have one stored procedure added to Sybase DB. Below is the signature of stored procedure:
create procedure process_write @id varchar(35), @pTime datetime,@status tinyint
and I am calling this stored procedure with below :
process_write '000000100', '22/9/2022 10:18:37', 1
Now when I run my code I do not see error on console and the stored procedure executes successfully, But when I run this in isql command prompt, I get below error:
Msg 247, Level 16, State 1: Server 'ABCXYZ', Procedure 'process_write': Arithmetic overflow during implicit conversion of VARCHAR value '22/9/2022 10:18:37' to a DATETIME field . (return status = -6)
I am not able to figure out how this is working in code but failing in isql console?