I am using PB 2017 R2 and SQL Server 2017. The following test code works when running on a desktop. When running on a mobile device (iPad) I get error "The COMMIT TRANSACTION request has no corresponding BEGIN TRANSACTION."
---------------------------------
string ls_sql
ls_sql = 'begin transaction'
execute immediate :ls_sql using sqlca;
if sqlca.SQLCode <> 0 then
messagebox('Begin Error', sqlca.sqlerrtext)
end if
update test1 set fmt = 3 where id = 1 using sqlca;
if sqlca.SQLCode <> 0 then
messagebox('Update Error', sqlca.sqlerrtext)
end if
ls_sql = 'commit transaction'
execute immediate :ls_sql using sqlca;
if sqlca.SQLCode <> 0 then
messagebox('Commit Error', sqlca.sqlerrtext)
end if
- Steve Mason
- PowerServer Mobile (Obsolete)
- Friday, 10 August 2018 00:58 AM UTC
- Page :
- 1
There are no replies made for this question yet.
However, you are not allowed to reply to this question.
However, you are not allowed to reply to this question.