database.disconnect() (Method)

Severs the current connection to the database.


JavaScript - 1.1
Netscape Enterprise Server - 2.0
JavaScript syntax:NESdatabase.disconnect()

It is a good idea to disconnect from the database when you know you won't need it anymore. This is good practice and allows other processes to connect when resources are scarce.

Until the database is connected again, only the connect() and connected() methods have any meaning.

See also:DbPool.disconnect()