- Kwadwo Boahene
- PowerBuilder
- Friday, 6 March 2020 08:48 PM UTC
I have this weird situation where a selected record into variables are 'successful' but the sqlca.sqlnrows parameter is still come out as zero so as the sqlcode and sqldbcode. This is happening sql server. The db2 application is fine.
example below
select a1 into :l_a1
from ssss
where b = 1
using sqlca;
The problem is here => IF sqlca.Sqlnrows > 0 then
found something - go ahead
Else
This is where the next step is dropping because the sqlnrows = 0 even though the variable l_a1 is populated.
end IF
PowerBuilder 2017 and Sql server 2016 through ODBC.
Thanks,
Kwadwo
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.