servername(
servername(
DATABASE
)

The servername( function returns the name of the server associated with a shared database.

Parameters

This function has one parameter:

database – database to be checked, or `""` for the current database. The specified database must be open.

Description

This function returns the name of the server associated with a shared database (or `""` if the database isn’t shared). If the database name is `""` the server name for the current database will be returned, as shown in this example.

    servername("") ☞ Acme Server

See Also

- dbshared( -- returns true if the current database is shared, otherwise false.
- serverdatabasename( -- returns the server database name associated with a shared database.

History

Version | Status | Notes
10.2 | No Change | Carried over from Panorama 6.0.