Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't open table exclusive
Message
De
13/08/1999 15:35:41
 
 
À
13/08/1999 15:29:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00253394
Message ID:
00253627
Vues:
22
>Yup, the problem comes back when I open the tables in the other order.
>I think I finally figured out what it was though. After opening each table, I was deleting records. Turns out there was an old delete trigger on the parent table to mytable. In the original order of opening the tables, this parent table was opened first. When I deleted a record, it fired the delete trigger, which opened the child table mytable. Then, even though it closed the child table, when I went to open it, it somehow thought is was already opened (I think) and so opened it shared. So, when I changed the order, the child table got opened first, so when the parent's delete trigger fired, mytable was already opened exclusive. Anyway, I removed the delete trigger, and now everything works fine in the original order.

See that. There's *usually* an explanation for all strange behavior. The problem is in digging deep enough to find it! Glad it's resolved for you.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform