Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Locked records in SQL statement.
Message
De
14/02/2000 23:39:49
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00331985
Message ID:
00332036
Vues:
15
>As long as you have only one table in your SQL query, you can use the ISRLOCKED() function as one of you columns.
>
>
select *,isrlocked() as locked from mytable into cursor c_temp
>

A big problem here is that isrlocked() only reflects if the local system holds a lock on the record in question, it does not tell you if the record is eligible to be locked by the local system. And since the lock status can change over time, the availability of a lock at the time of query may not be the availability of a lock at a later time. The SELECT is a snapshot; it does not dynamically change the status of records selected, especially where the value of a function would have to be continuously updated against each record of mytable, and this is inherently not Rushmore-optimizable. It's be very expensive in terms of system overhead,netowrk traffic and server load if this were not the case...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform