wb_odbc_disconnect

boolean wb_odbc_disconnect( resource odbc_connection )
Parameters
-
odbc_connection
- ODBC connected open by means of the wb_odbc_connect function
Since version
10.0
Description
This function closes a connection to the ODBC source.
Instead of this function, you can also use the wb_close function. ODBC connection is also automatically closed after completed execution of the PHP script (similar to open cursors, non-persistent connections etc.).
Returns
This function returns TRUE on success, FALSE on error.
Example
Read data from the MySQL server that is connected by means of ODBC data source that is registered as MySQL test, into the string variable. To use the XML API function wb_export_to_XML_buffer, an ODBC connection that is used in DAD definition must be open in advance.
...
$odbc_resource = wb_odbc_connect("MySQL test","admin","password");
$dad = "*Customers_mysql_analytDAD";
$resXML = wb_export_to_XML_buffer($connection,$dad,NULL,NULL);
wb_odbc_disconnect($odbc_resource);
...