I've seen the locks, but I've never had to actually disconnect, just close the results. Just right click on the tab with the results and hit close has always worked for me.
On Tue, 2021-08-03 at 14:57 -0500, K Crawford wrote:
I tried the stop and it did not work.
I just need to get in a better habit of using the Ctrl+F11 to reconnect or
Ctrl+F12 to disconnect.
Thanks for the input.
Kerwin
On Tue, Aug 3, 2021 at 2:30 PM Charles Wilt <charles.wilt@xxxxxxxxx<mailto:charles.wilt@xxxxxxxxx>> wrote:
If you run the same/similar statement 3 times (by default) SQL will start
pseudo-closing cursors.
Thus leaving a shared for update lock on the file and member. You should
not be seeing any records locked.
You'd have to disconnect from the server to fully close the file.
Charles
On Tue, Aug 3, 2021 at 9:59 AM K Crawford <kscx3ksc@xxxxxxxxx<mailto:kscx3ksc@xxxxxxxxx>> wrote:
I am using ACS Run SQL Scripts to research data when errors happen, for
that matter other reasons also.
I will use a simple SQL statement like
SELECT *
FROM myLib/myTable
WHERE Client = 'ABC'
This creates a lock on the object and members of the object
myLib/myTable.
If I forget to disconnect or run another statement over something else.
This can create issues.
I found the WITH UR clause. I get the same results.
What can I do to run my simple SELECT without Object/Member locks?
TIA
--
KCrawford
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx>
To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx>
Before posting, please take a moment to review the archives
at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx<mailto:support@xxxxxxxxxxxxxxxxxxxx> for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link:
https://amazon.midrange.com
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx>
To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx>
Before posting, please take a moment to review the archives
at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx<mailto:support@xxxxxxxxxxxxxxxxxxxx> for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link:
https://amazon.midrange.com
--
KCrawford
[
https://www.medtronsoftware.com/img/MedtronMinilogo.bmp] Kevin Bucknum
Senior Programmer Analyst
MEDDATA / MEDTRON
120 Innwood Drive
Covington LA 70433
Local: 985-893-2550
Toll Free: 877-893-2550
https://www.medtronsoftware.com
CONFIDENTIALITY NOTICE
This document and any accompanying this email transmission contain confidential information, belonging to the sender that is legally privileged. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, or the employee of agent responsible to deliver it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or action taken in reliance on the contents of these documents is STRICTLY PROHIBITED. If you have received this email in error, please notify the sender immediately to arrange for return or destruction of these documents.
As an Amazon Associate we earn from qualifying purchases.