InterSystems 常见问题系列
使用 ErrorList 查询 SYS.ApplicationError 类.
- 注 1: 在 %SYS 命名空间中运行.
- 注 2: 这是个非存储的utility, 所以我们用 %ResultSet 类而不用 %SQL.Statement.
执行命令的例子如下.
USER>set $namespace="%SYS" //equal to zn "%SYS"
%SYS>set rset=##class(%ResultSet).%New()
%SYS>set rset.ClassName="SYS.ApplicationError"
%SYS>set rset.QueryName="ErrorList"
// The first argument of the query is the namespace name, the second argument is the date (in MM/DD/YYYY format).
%SYS>do rset.Execute("USER","08/17/2020")
// To display the results on the screen, execute the %Display() method.
%SYS>do rset.
.png)
.png)





.png)
.png)