Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP with MySQL question
Message
De
02/05/2011 19:53:16
 
 
À
02/05/2011 19:36:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01508928
Message ID:
01509120
Vues:
75
Perhaps he meant SQLSTRINGCONNECT()

>I didn't see STRCONNECT() in VFP, may be not VFP function, must have STRCONNECT.PRG or function STRCONNECT
>
>can I know what's the code?
>
>regards,
>
>Jerry
>
>
>
>
>>>>>I'm using VFP with MySQL database.
>>>>>
>>>>>A typical One-to-many form takes 10 connections.
>>>>>I have checked other app (not VFP) with MySQL only takes 1 connection.
>>>>>
>>>>>how can I do the connection pooling in VFP
>>>>>
>>>>>thanks for the help
>>>>>
>>>>>regards,
>>>>>
>>>>>Jerry
>>>>
>>>>In my application I am using STRCONNECT() to connect to the MySQL database. The connection handle is saved in the main application object and every form (better data object) is using the same connection handle to execute the queries.
>>>>
>>>>Perhaps in your code it does a new connection for each query?
>>>
>>>
>>>in the form.init, I have:
>>>
>>>
>>>store SQLCONNECT(myDataSource,myUserID,myPassword) to thisform.nConnHandle
>>>
>>>
>>>in the form.destroy, I have:
>>>
>>>
>>>SQLDISCONNECT(thisform.nConnHandle)
>>>
>>>
>>>each form will take 10 connections, even the DataEnvironment only has two views.
>>>
>>>regards,
>>>
>>
>>Maybe you have another call to SQLCONNECT() or SQLSTRINGCONNECT() somewhere else in the form?
>>
>>Tamar
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform