Hi
I am integrating my application with MS SQL server. When I execute a sql function passing a LONG parameter, the function fails with the code SQLSTATE = 22003
[Microsoft][ODBC SQL Server Driver]Numerical value out of range.
if I use an integer variable everything works fine
PB 2019 R3 2728
MS SQL Server 2019
------------- MSSQL
CREATE OR ALTER function [dba].[fn_test_long](@ad_number int)
RETURNS int
AS
begin
return(@ad_number)
end
GO
------------- POWERBUILDER
long ll_value, ll_return
ll_value = 2288
select dba.fn_test_long(:ll_value) into :ll_return;
After runnig this code the ll_return value is equal to 0 and sqlerrtext contains
SQLSTATE = 22003
[Microsoft][ODBC SQL Server Driver]Numerical value out of range
Can you help me ?
Thanks in advance