Error getting tags :
error 404Error getting tags :
error 404 revCloseDatabase | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
revCloseDatabase
Basics
Expander triangle
Type
Command
Syntax

revCloseDatabase databaseID

Introduced
2.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
Disk,Network
Summary
Closes the connection to a database.
Examples

revCloseDatabase savedBudgetDB

Additional Comments
Expander triangle

Use the revCloseDatabase command to cleanly log off from a database.

Parameters:

The databaseID is the number returned by the revOpenDatabase function when the database was opened.

Comments:

All open databases are closed automatically when the application quits. However, it is recommended practice to explicitly close database connections when your stack is finished with them.

The revCloseDatabase command closes all open record sets (database cursors) opened by the database, as well as closing the database itself.

If the closure is not successful, the result function returns an error message that begins with the string "revdberr".

Important! The revCloseDatabasecommand is part of the Database library. To ensure that the command works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions section of the General screen of the Standalone Application Settings window, make sure the "Database Support" checkbox is checked and the database drivers you are using are selected in the list of database drivers.

User Comments
Expander triangle