Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CursorAdapter and Connections to SQL Server
Message
De
01/07/2010 10:02:15
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01471167
Message ID:
01471180
Vues:
69
This message has been marked as a message which has helped to the initial question of the thread.
No. You should reuse the same connection as much as possible. Two reasons: 1) Connections take a long time to establish. If you keep opening/closing or simply opening a new one every time, your application will be slower. 2) SQL Server is often licensed on a per connection basis.

>Hi,
>
>Does every CA object you create creates a connection to the SQL Server? And if so and your application may have several objects (forms) that have CA objects active, does it mean that such application uses several connections to the SQL Server at the same time? The reason I am asking is I thought that an application should use as few connections to the SQL server as possible. In fact when I am using the SPT approach the application is using just one connection established at the top of the application and this connection is used everywhere. How do you accomplish the same with CA?
>
>TIA.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform