Hi there,
I have just upgraded to the driver V4.x from 3.x.
I am now receiving a BCD overflow error when calling a Stored Proc with a currency input.
Environment is D7 connecting to SQL Server 2000.
What has changed between the two versions that could be providing this error?
Thanks in advance.
BCD Overflow from 3.x to 4
Please describe this problem in more details:
- specify a value that causes this error;
- when does this problem appear (design time/run time)?
- what actions do you perform?
- do you use preparation?
- what is the definition of your stored procedure;
- what is the exact version of your SDAC. You can see it in the About sheet of TMSConnection Editor.
It would be better if you send me a complete small sample at evgeniyD*crlab*com to demonstrate the problem, and the script to create your stored procedure.
- specify a value that causes this error;
- when does this problem appear (design time/run time)?
- what actions do you perform?
- do you use preparation?
- what is the definition of your stored procedure;
- what is the exact version of your SDAC. You can see it in the About sheet of TMSConnection Editor.
It would be better if you send me a complete small sample at evgeniyD*crlab*com to demonstrate the problem, and the script to create your stored procedure.
Thank you for the example.
We reproduced the problem. The problem is in Borland SqlExpr code. To avoid it you should use
instead of
We reproduced the problem. The problem is in Borland SqlExpr code. To avoid it you should use
Code: Select all
ParamByName('paymentAmount').AsBCD := 5.00 ;
Code: Select all
ParamByName('paymentAmount').AsCurrency := 5.00 ;