Hi!
Use SQLCancel() before SQLDisconnect(). You might also want to check "Busy" property using SQLGetProp for connection handle - if it is .T., for sure SQLCancel() is needed before SQLDisconnect().
>Thank you very much Vlad, it was exactly what I needed !
>
>However, I still have a little problem : after doing this, I get an error when I try to close my connection using SQLDISCONNECT() saying that the call is not valid during a SQLEXEC() call (traduction from french). I only get the error when I reach the bottom of the grid (so all the records are fetched)...
>
>Any idea ?
>
>Thanks again !
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.