disconnectedserver
disconnectedserver

The disconnectedserver statement takes the current database offline without contacting the server.

Parameters

No parameters.

Description

This statement takes the current database offline without contacting the server. This should only be used if the connection with the server has been disrupted. (If the connection with the server is not disrupted, you should use the dropserver statement if you need to take the database offline.)

    if info("serverconnectionstatus") beginswith "DISCONNECTED"
        disconnectedserver
    endif

Once the problem disrupting the connection to the server has been resolved, the database connection to the server can be resumed with the connecttoserver statement.

See Also

- connecttoserver -- reconnects the current database to the server (after the dropserver statement has been used).
- dropserver -- disconnects the current database from the server.
- info("serverconnectionstatus") -- returns the status of the connection between this database and the server.
- info(“serverconnection”) --
- serverdatabasename( -- returns the server database name associated with a shared database.
- servername( -- returns the name of the server associated with a shared database.
- sharedusers( -- returns a list of users that are currently using the specified database.

History

Version | Status | Notes
10.2 | New | New in this version.