Zoomed Image

AMSX Scripting Language - Command : sqltoxml

Summary

Execute a SQL statement and load the results into the AMSX XML buffer

Description

Runs a SQL query and converts the result set into an XML document, which is stored in the AMSX XML buffer (mdoc). The root element uses the table name provided. An optional compress flag controls whitespace handling.

Parameters

ParameterDescription
cmdTable name used as the XML root element
Argument 0SQL statement to execute
Argument 1Compress flag (true to compress, default true)

Syntax


SqlToXML "Table name used as the XML root element", "SQL statement to execute", "Compress flag (true to compress, default true)"

Return to the AMSX Command Reference