Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
List_keys function
in OpenInsight
Apparently there is a basic + command called list_keys . When i call it, i get variable unassigned though. Does this function work?
https://wiki.srpcs.com/display/Commands/List_Keys+Routine
https://wiki.srpcs.com/display/Commands/List_Keys+Routine
Comments
i guess i will have to use another cursor to select all of the keys in a table....
I am trying to select all of the keys in a table inside of an mfs, so using cursor 0 will not work as it may already be in use...
https://wiki.srpcs.com/display/Commands/Pop.Select+Subroutine
btw, do you know if it's possible for me to access the local lock table on a particular workstation?
https://wiki.srpcs.com/display/MFS/Local+Lock+Table
for locks take a look at this upgrade
@donbakke ok no worries. would be good to be able to see it. oh well.
I am trying to see who has a lock.
In the business I work for, an unknown person holding a lock on something can be catastrophic,and we had a nasty case of this happen last week.
At the moment, we track in an mfs whenever someone locks/unlocks a particular thing, but this method doesn't' work if the user's computer crashes (but there is a way to get around this...)
Anyway, All of this would be much simpler if I could just see the local lock table on each workstation; that's why I asked.
Anyway, the mfs thing will work 100% (after i have made some changes to it)*, so it's not a big deal that i can't look at this local lock table, it would just be nice.
*except only on tables that have been setup with the mfs, which isn't all tables (we have 100s of tables in our system). But i have a way of getting around this too lol...
We've had to write our own utility that knows how to ask who owns the lock and then we can send a request to release the lock. This has been useful for when access to the database server is limited or when the UD Manager locks up when there are large numbers of locks.
How does this work? We are making something similar I think.
In the TIMER event on every workstation, we are going to put some code that checks if it should check if the workstation has a lock on a particular record. If it does, it will report back to US. This plus the MFS should cover all the cases.