NAME
SQLclosedb - Close the open database inside tcl

SYNOPSIS
SQLclosedb

DESCRIPTION

The SQLclosedb command closes the open database. If there is no database open, then an error message is appended to the result and TCL_ERROR is returned. Running this command frees the space allocated to the SQL Data Area (SQLDA) used by the SQLselect and SQLexec commands. This command also frees the space allocated to any user defined cursors declared with SQLdeclareCursor. SQLclosedb disconnects from the database, but does not commit any transactions (see the SQLcommit command).

EXAMPLE

The following code fragment will open, then close the microlab database.
        SQLopendb microlab
        SQLclosedb

KEYWORDS
database

SEE ALSO
SQLopendb(3), SQLdbName(3)