| 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. |