Call the SaveToTable method to save the contents of a query result set to a permanent table for use in subsequent database operations or queries.
If you wish to store the result set in a table in a different database you must provide a different database directory, for local sessions, or database name, for remote sessions, in the NewDatabaseName parameter.