The SQL_Terminate() function deletes the specified pass-through SQL connection.
SQL_Terminate(SQL_connection)
• SQL_connection – A long integer specifying the pass-through SQL connection that will be deleted.
A long integer indicating whether the terminate operation was successful. The value 0 indicates the pass-through SQL connection was successfully terminated. Any other value indicates an error occurred.
Pass-through SQL connections are active until you use the SQL_Terminate() function to terminate them.