SqlSystem.loginServer Method [AX 2012]

Retrieves the name of the database server currently connected to.

public str loginServer()

Run On

Server

Return Value

Type: str
The name of the database currently connected to.

An empty string is returned if the database does not support a server concept.

{ 
    SqlSystem SqlSystem = new SqlSystem(); 
    print SqlSystem.loginServer(); 
}

Community Additions

ADD
Show: