Database & Session infomation

static void Jimmy_DataBaseInfo(Args _args)
{
    SqlSystem       SqlSystem       = new SqlSystem();
    Session         Session         = new Session();
    LoginProperty   loginProperty   = sqlSystem.createLoginProperty();
;
    print SqlSystem.databaseName();
    print SqlSystem.logfileName();
    print SqlSystem.databaseId();
    print SqlSystem.loginDatabase();
    print SqlSystem.loginServer();

    print systemdateget();
    print today();
    print SysSQLSystemInfo::construct().getloginDatabase();//AX2009DEV
    print SysSQLSystemInfo::construct().getLoginServer();//DGQVS004
    print SysSQLSystemInfo::construct().getLogFileName();//数据库日志文件路径
    print SqlSystem::databaseBackendDesc();//DGQVS004 - AX2009DEV
    print userinfoHelp::userName(curuserId());
    print Session::getAOSInstance();//aos实例名
    print Session::getAOSPort();//aos实例名
    print XSession::systemSessionId();

    print Session.AOSName();//AOT Name
    print Session.userId();
    print Session.sessionId();
    if(loginProperty)
    {
        print loginProperty.getDatabase();
        print loginProperty.getServer();
    }
   
// Prints the name of server for the current session.
    print new xSession().AOSName();

    pause;
}
原文地址:https://www.cnblogs.com/Fandyx/p/1934350.html