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()
- Log in to post comments