Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best coding practices regarding open/unopen tables
Message
De
21/12/2003 04:58:15
 
 
À
20/12/2003 22:45:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00859873
Message ID:
00861078
Vues:
28
>Tore,
>
>>My suggestion is simple: Use SQL and cursors as much as possible. If you take some time and analyse your system, you will probably be able to use SQL so much that your tables will almost never stay open. I have done this myself for many years, and whenever I have a power failure or something, I can be almost sure that my data is safe.
>
>But using views or select sql cursors still opens the affected tables!
>
>Like when I do -
>
>SELECT <fieldlist> FROM <tables> INTO CURSOR <mycursor>
>
>
>or
>
>
>USE <myView> NODATA
>
>
>the affected tables open too.
>
>How do make it as you have stated that 'your tables will almost never stay open'
>
>Thanks for your help and clarification.
>
>Dennis
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform