zoukankan      html  css  js  c++  java
  • Sql statement in AX 2009

    AX 4.0 or 2009 must be running on the server side,
    otherwise system will pop-up permissions request failed error message!
    remark by Jimmy July 13th 2010

    static server void Jimmy_SQLinAX2009(Args _args)
    {
        Connection  Con;
        Statement   St;
        SqlSystem   sqlSystem = new SqlSystem();
        str         sqlStmt;
        int         i;
        ResultSet   rs;
        SqlStatementExecutePermission   sqlStatementExecutePermission;
        ;
    
        sqlStmt =  'SELECT top 5 * from CustTable ';
    
        new SqlStatementExecutePermission(sqlStmt).assert();
    
        Con     = new Connection();
        st      = Con.createStatement();
        rs      = st.executeQuery(sqlStmt);
    
        while (rs.next())
        {
            info(rs.getString(1));
        }
        info(enum2str(new DictSecurityKey(securityKeynum(SysDevelopment)).rights()));
        info(sqlSystem.loginName());
    }
    /*
    AX 4.0 or 2009 must be running on the server side,
    otherwise system will pop-up permissions request failed error message!
    remark by Jimmy July 13th 2010
    */
    

  • 相关阅读:
    ajax 检测用户名是否可用
    Ajax 知识
    flask 基础
    如何使Session永不过期
    Css 截取字符串长度
    json sort
    js 原生获取Class元素
    js 跳转整理
    html5 ajax Java接口 上传图片
    调用URL 接口服务
  • 原文地址:https://www.cnblogs.com/Fandyx/p/1776543.html
Copyright © 2011-2022 走看看