Returns the contents of a set of zero or more tables in a USoft XML format that is re-importable by passing it to the XML.IMPORT method of the USoft XML internal component. This format may also be passed as an input format to <pc:Compare> for data comparisons.
Connection defines an application location by a combination of a database connection and a USoft application name, as used to define and run a Rules Service instance against this application location, and as exemplified below.
Tableregexp is a regular expression acting on table names. It can be used to restrict the output to a subset of tables matching the regular expression. If tableregexp is the empty string, the keyschema of all the tables is reported.
If outputfile is specified, the return value is written to the specified folder and file on the file system.
The returned XML format looks like this:
Behaviour with subtypes
To minimise potential problems with the re-importability of the result of sql:DataTableSetExport, when you export a supertype table, only those supertype records for which all subtype indicators are set to N are exported.
At first sight, this behaviour seems to cause supertype data to be skipped. On the contrary, supertype data that have Y for at least 1 subtype are still included in the export (and thus also in a potential re-import) if you include the corresponding subtype table, since they are an integral part of the subtype data. Another way of saying this is that, if you export only a supertype table, supertype data of subtypes is not considered in-scope.
Complex subtype constellations may not be automatically re-importable. For details, see the section on exporting metadata in the USoft Delivery Manager Guide.