How to: Close Databases
You can close an open database interactively or programmatically.
To close a database
Perform one of the following:
- In the Project Manager, if the node for the database is expanded, collapse the node.
-OR-
- In the Project Manager, click the name of the open database, and then Close.
-OR-
- In the Database Designer, close the designer window.
The database closes.
To close a database programmatically
- Use the CLOSE DATABASES command.
For more information, see CLOSE Commands.
Note
Using CLOSE DATABASES in the Command window does not close a database if the database was opened in the Project Manager by expanding its node or when a form is running in its own data session. Under these circumstances, the database remains open until it is closed in Project Manager or until the form using the database closes.