Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inserting records to SQL Server
Message
De
30/10/2001 19:29:34
 
 
À
30/10/2001 18:50:06
Sergio Ortiz
Tek Services Group, Llc
Hollywood, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00574760
Message ID:
00575398
Vues:
24
>Crescencio, do I have to close the connection?
>
>Sergio

Yes, always close the connection. Other things missing from the simple example are checking for the results of both SqlConnect() and SqlExec(). If any of these return -1 then the call failed and you can get more details about the problem with AError(). To close the connection do:
SqlDisconnect(nHan)
HTH
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform