| Name | Size | Mode | Actions |
|---|---|---|---|
| close.html | 1476 | 0644 | editdlrm |
| conne.html | 5034 | 0644 | editdlrm |
| dsn.html | 2652 | 0644 | editdlrm |
| gloss.html | 20114 | 0644 | editdlrm |
| index.html | 277 | 0644 | editdlrm |
| intro.html | 2374 | 0644 | editdlrm |
| navi.html | 1023 | 0644 | editdlrm |
| odbc.css | 6801 | 0755 | editdlrm |
| query.html | 3600 | 0644 | editdlrm |
| resul.html | 6956 | 0644 | editdlrm |
/usr/share/doc/unixODBC/doc/ProgrammerManual/Tutorial/close.html (1476B)
| Closing a connection | ||
Before your program terminates you need to free all resources you
have allocated. If you checked the source on the previous page, you certainly
spotted
SQLFreeHandle(SQL_HANDLE_ENV, V_OD_Env);
Before you free any handle make sure that it is no longer needed, wouldn't be funny, if you released to connection handle but forgot to close the connection ;)
And if you want to close a connection you need
SQLDisconnect(V_OD_hdbc);
If you need source code, please have a look here. |