EssCreateLocationAlias

Creates a new location alias; that is, it maps an alias name string to an ordered set of the following five strings: host name, application name, database name, user login name, and user password.

Syntax

ESS_FUNC_M EssCreateLocationAlias (hCtx, pAlias, pHost, pApp, pDb, pName, pPassword);
ParameterData TypeDescription

hCtx;

ESS_HCTX_T

API context handle

pAlias;

ESS_STR_T

Location alias

pHost;

ESS_STR_T

Target host

pApp;

ESS_STR_T

Target application

pDb;

ESS_STR_T

Target database

pName;

ESS_STR_T

User login name

pPassword;

ESS_STR_T

User password

Return Value

Returns an error if a location alias with the name pAlias already exists.

See Also