Hi,
I am wanting to get the results of SYS.Database class's List query into a result set.
I have code that does it, but I get a cursor error at the end.... should I just to a try/catch and ignore this error below? Or can I call this in a different way to avoid the error?
My code, in the %SYS namespace
Set Statement=##class(%SQL.Statement).%New()
Set status=Statement.%PrepareClassQuery("SYS.Database","List")