Hi guys, just a quick question on how get the sql statement that has been executed in a %ResultSet?
so basically after the execute command I would like to save the SQL statement generated in a eg, a global and check sql statement?
Set rset1 = ##class(%ResultSet).%New()
Set sc = rset1.Prepare("Select statment ")
Set:+sc sc = rset1.Execute(parm1,parm2)
Maybe something like s ^sql=rset1.Getstatment !?
Thanks


.png)


.png)

