× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



This morning, I wrote:

> Suppose we have a result set of the entire file, with scrollable
> update cursor. When are records actually locked, and is there a way
> to avoid locking them unless we know we're going to update them?

Now THIS is interesting:

I just went into one of our demonstration files using Squirrel SQL. I then did a WRKOBJLCK on the file, from a terminal session, and found no locks whatsoever on the file or the member, even though Squirrel was displaying the entire file.

Then I right-clicked on the file in Squirrel, and selected "Make Editable."

At that point, a SHRRD lock appeared on the file. And when I made a data change, another SHRRD lock appeared, with a third SHRRD lock appearing when I changed something else.

At no time, though, did I see any record locks.

This is getting interesting: just how do record locks work in SQL?

--
JHHL


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.