- Kieu Parrish
- PowerBuilder
- Wednesday, 4 December 2019 03:02 PM UTC
Good Morning!
I have an issue: PowerBuilder is calling the APD functions with an open transaction.
=> The APD functions are Stored Procedure(s). ( we can not have access to see how these SPs are coded )
=> Our PB application calls these APD SPs from our "limsapd" database and the DBA said: PowerBuilder is calling the APD functions with an open transaction. ( We have Rollback when sqlca.sqlcode = -1 ... DBA still said open transaction )
=> Our PB application is also calling a lot of other SPs from other databases but no issues
=> Will using the AutoCommit = true and set back to false fix the issue of opening transaction like below ?
sqlca.Autocommit = true
Declare apd_checkinout procedure for limsapd.dbo.CheckInOut
...
Execute apd_checkinout;
If sqlca.sqlcode = -1 then
set error message...
//Rollback using sqlca ; -> commented out because the autocommit is added .
End If
Close apd_checkinout;
sqlca.Autocommit = false
We are using PB2017 R3 and Microsoft SQL Server 2016.
How does the opening transaction happen ?
I really appreciate any help!
Thank you!
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.