Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connection is busy error
Message
De
01/03/2004 14:24:45
 
 
À
01/03/2004 06:11:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00881990
Message ID:
00882121
Vues:
26
This message has been marked as the solution to the initial question of the thread.
>lnSql = SQLCONNECT('SomeDataSource')
>
>* Check for lnSql > 0, if successful
>
>USE MyDB!View1 IN 0 CONNSTRING lnSql
>
>USE MyDB!View2 IN 0 CONNSTRING lnSql
>&& Error 'Connection MyDB is busy'
>
>
>So I put in a
>
>DO WHILE SQLGETPROP(lnSql,"ConnectBusy")
>ENDDO
>
>But that just caused the thing to go into a forever loop.
>
>Funny thing is, it works in the debugger.
>
>What to do?

Hi Peter,

Most likely the error is reported because the View1 hasn't finished fetch by the time you are trying to open View2. To avoid the error, execute GO BOTTOM IN View1 before USING View2 or simply change View1's FetchSize property to (-1) in DBC.

Thanks,
Aleksey.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform