Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sql disconnect a session
Message
De
09/02/2017 07:34:45
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
08/02/2017 17:32:50
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 9 SP2
Database:
MS SQL Server
Divers
Thread ID:
01647688
Message ID:
01647766
Vues:
44
>>>Someone knows a situation where SQLDISCONNECT () does not disconnect the session?
>>
>>Maybe the handle you specify is out of scope?
>>
>>Maybe there is an asynchronous query running which has not finished? (not tested)
>
>good point!

Not sure if this fits in here, but what if sqlIdleDisconnect() was used... Would that reconnect? Or could it happen in a scenario where
1. a real (physical or any other external cause) disconnect happens
2. the app issues a disconnect()
3. something else in the app needs the handle, the idle disconnect detects that there's no connection, reconnects.

I've seen some uses of this idle disconnect, but it's not the code I wrote, nor have I tested it myself, so I'm only guessing here.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform