>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