Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting data from SQ: Svr without 'locking' the table
Message
De
03/10/2003 21:52:26
Larry Long
ProgRes (Programming Resources)
Georgie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00833517
Message ID:
00835047
Vues:
32
If I recall correctly, SQL is finickey about the clause. I think that you can issue it without the "WITH" on a single table (SELECT * FROM mytable NOLOCK), but with multiple tables, such as a join, you need the "WITH (NOLOCK)"...but if you leave off the paren's around NOLOCK it doesn't do anything AND does NOT tell you it's ignoring it!

>I'd like to thank all of you who replied to my question.
>
>Funny things seem to frequently happen to me around software < gremlins ? >. Anyway, I'd like to share with you all that I re-wrote the particular query that was giving me trouble and once more included "WITH (NOLOCK)" as I had done previously but then without success. This time it worked like a charm!!!??? I cannot explain why my previous attempts with this one had failed but maybe I had somehow created a syntaxt error without realising it. So, thanks to your good advice, the retry has worked perfectly. Oh! and in this case, dirty-reads is no problem whereas locking the database has irate people queuing at my door <g> Thnx. /psb
L.A.Long
ProgRes
lalong1@charter.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform