-
Praburaj KarthiKeyan
- PowerBuilder
- Tuesday, 13 January 2026 10:32 AM UTC
Hi,
My app is using more then one Trx obj.
IF Trx_Obj2.DBHandle()<>0 THEN ---–this code is working ( DBHandle() return value )
DISCONNECT USING Trx_Obj2; ---–this code is working ( logically DISCONNECT but still connect in DB)
IF Trx_Obj2.SQLCode < 0 THEN
MessageBox("Disconnect Error", Trx_Obj2.SQLErrText, Exclamation!)
END IF
END IF
IF Trx_Obj2.DBHandle()<>0 THEN ( DBHandle() return no value since logically DISCONNECT,no error msg )
MessageBox("Disconnect Error", ‘NOT DISCONNECT’, Exclamation!)
END IF
//Transaction pooling: If you enable pooling, DISCONNECT may logically end the transaction but keep the physical connection available for reuse. Design with that in mind for high-throughput apps.
1) how to handle this Transaction pooling?and what is the right code ?
2) how to DISCONNECT from my DB(physical) also ?
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.