Joao Ribeiro · Oct 14, 2020 go to post

you can use the class %RemoteResultSet to  insert from another namespace.

Example: 

 set rs=##class(%RemoteResultSet).%New()
 set rs.ConnectionString="localhost[1972]:NAMESPACE"
 Do rs.Prepare("insert into tablename (property1,property2 ) values (?,?) ")
 Do rs.Execute(var1,var2)
 Do rs.Close()