Lock by read only SQL
Posted: Thu 14 Jul 2016 19:55
Hello.
Is there any way of having a record or a table locked by a select statement?
I have to concurrents applications, a UI one and a Windows service.
Mostly th Windows service writes data to the database, but it seems that the UI application was locking an update statement on the Windows service. I have changed the selected record on the UI application but the srevice was kept locked until the UI application connection was closed.
Is there any reason for that ? There was no any open transaction.
Thank you very much.
Kind regards.
Jayme Jeffman Filho.
Is there any way of having a record or a table locked by a select statement?
I have to concurrents applications, a UI one and a Windows service.
Mostly th Windows service writes data to the database, but it seems that the UI application was locking an update statement on the Windows service. I have changed the selected record on the UI application but the srevice was kept locked until the UI application connection was closed.
Is there any reason for that ? There was no any open transaction.
Thank you very much.
Kind regards.
Jayme Jeffman Filho.