Command DELETE CONNECTION Professional

Deletes a connection

Syntax
DELETE CONNECTION  <oSession>
Parameters
<oSession>
The <oSession> is the variable of the connection that was used to create the connection.
Description

The command DELETE CONNECTION disconnects from the ODBC data source that was created using CREATE CONNECTION and deletes the connection.

Examples
DELETE CONNECTION
// This example shows how to use the 
// DELETE CONNECTION command. 

#include "sqlcmd.ch" 

PROCEDURE main(cDsn) 

     // use an ODBC data source name to connect, 
     // provide user name and password 
     CREATE CONNECTION INTO myConn DATASOURCE "Oracle-Demo" ; 
            USER "Scott" PASSWORD "Tiger" 
     // delete the connection 
     DELETE CONNECTION myConn 

RETURN 

PROCEDURE DbeSys 
   DbeLoad( "ODBCDBE" ) 
   DbeSetDefault( "ODBCDBE" ) 
RETURN 
Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.