Powerserver database connection and pooling
- New
- Advice
-
Jay Hastings
- PowerServer
- Wednesday, 19 November 2025 11:04 PM UTC
We have a 25 year old PowerBuilder app that started with PB6 in 1998. The app opens and connects to the database, creating the transaction object SQLCA, and that is used the entire time the app is running. When a window opens, we create datastores and they are all assigned to SQLCA using SetTransObject. After modifying data, the datastores are updated and we call a commit function in SQLCA ( ie SQLCA.of_Commit() ).
Is there any way the commit is using a different connection than what was assigned to the datawindow?
We had some strange behavior with a database call like SQLCA.storedprocedure() with parameters and a return value and it appeared it was getting results from a different user. I replaced that with a datastore and have had no issues.
We are fighting database locks and trying to figure out how the connections are working.
We know we need to rewrite the app to work with PS better, but that will take time. We're trying to simulate a static DB connection. We've messed with the Pooling and Timeout settings in the deploy project, and LongConnection in the INI file.
Any assistance is appreciated
Jay
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.