- Gbenga Owolabi
- PowerBuilder
- Wednesday, 8 August 2018 09:17 AM UTC
Connecting application to database using ADO.NET and running a simple select statement locks the same table for every other user. This is different from the ODBC connection which is quite strange.
Please see the details below for more information;
Powerbuilder version: 2017 R3
Connection String:
SQLCA.DBMS = "OLE DB"
SQLCA.LogPass = 'password'
SQLCA.LogId = sa
SQLCA.AutoCommit = false
SQLCA.DBParm = "PROVIDER='SQLOLEDB',DATASOURCE='DBSERVER',PROVIDERSTRING ='Database=MYDATABASE',disablebind=1,Async=1,StripParmNames='Yes'"
When i change the aucommit property to true, the application commits every statement in a transaction even if there is a failure with rollback.
Please advice on the way out of this.
ODBC option works perfectly with the Autocommit on default i.e false.
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.