asehostname

Returns the physical or virtual host on which the SAP ASE server is running.

Syntax

asehostname

Examples

Standards

SQL/92 and SQL/99 compliant

Permissions

The permission checks for asehostname differ based on your granular permissions settings.

SettingsDescription
Granular permissions enabled

With granular permissions enabled, you must be granted select on asehostname or have manage server permission to execute asehostname.

Granular permissions disabled

With granular permissions disabled, you must be granted select on asehostname or be a user with sa_role to execute asehostname.