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.