We are connecting to the Progress Database from ASP.NET web application using the Progress ODBC Driver.
The isolation Level is set to READ COMMITTED IN THE Driver Properties.
We are trying to retreive the data based on certain conditions from one of the web pages.
However, if the record is locked in Progress by some other application we are not able to retreive any data and it gives the following error
[DataDirect][ODBC Progress OpenEdge Wire Protocol driver][OPENEDGE]Failure getting record lock on a record from table.
what are the different options or solutions where we can read the data from the progress database.
If I change it to «READ UNCOMMITTED» then the select query works because there is no lock defined on the tables, but the insertion or updation fails for this instance.
I was able to do this
Driver properties are still READ COMMITED
and I changed the SQL select statements to
SELECT COLUMN_NAME FROM TABLE_NAME WHERE FIELD_NAME=’123′ WITH(NOLOCK)
AND now if though the record is Locked by some other application it would still read the record.
Yes we thought about creating 2 DSN’s one with READ_Commited and other one with Read_Uncommited. Since this solution seems to be working would be sticking on to One DSN
I am facing same type of issue. I am just reading records from progress database using ODBC drivers.
ODBC isolation properties –> READ COMMITED
SELECT COLUMN_NAME FROM TABLE_NAME WITH(NOLOCK)
Whenever there is lock in progess , i got expection in my c# code. I don’t understand how to handle this, please advise…
RealHeavyDude Well-Known Member
SELECT * FROM customer WITH (READPAST NOWAIT)
Looks like thisa will work but where i am adding where condition it is giving sysntax error with hint. Any idea why where clause is not working with hint in progress.
SELECT column1 FROM customer WITH (READPAST NOWAIT) where (column1 > 10)
Please let me know.
did you considered to change the order of where and with?
or, maybe even better you should have a nice read of the manuals… http://documentation.progress.com/output/OpenEdge102b/pdfs/dmsrf/dmsrf.pdf
changed order with and where clause , it work. Thanks lot.