Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inserting records to SQL Server
Message
From
30/10/2001 19:29:34
 
 
To
30/10/2001 18:50:06
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00574760
Message ID:
00575398
Views:
23
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform