Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best Practice - Should the Connection Handle be stored
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01070716
Message ID:
01072339
Vues:
20
Hi Jojo

>What if you stored your connection handle during your app startup and just close the handle on exit or on your forms load & destroy procedures but then your network connection link is broken or your SQL server just experience a problem and it goes down? This means that your connection handle is useless and not valid anymore.
>
>What do you think? Am I wrong with my BEST PRACTICE?

I really don't know what to say as I myself was in the dark. But then I guess we can have best of both the worlds. Store the connection as suggested by others. Before any action confirm the Stored Handle using a small SQL SELECT or some very low bandwidth SQL statement.

What do you say on this method?
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform