Zoomed Image

AMSX Scripting Language - Command : ExecuteTextToTable

Summary

Execute collected SQL and bulk insert, update, or delete the results into a table

Description

Runs the SQL accumulated between TEXT and ENDTEXT and passes the result set to the SqlInsertUpdate engine, which handles NextID allocation, created/modified date stamping, and user tracking automatically. Business rules are bypassed, so this is best suited for high-performance bulk loads, ASA imports, or temp-table operations where speed matters more than rule enforcement.

Parameters

ParameterDescription
cmdTarget table name (can be a temp table)
Argument 0Key field name(s), comma-separated, used to match existing rows
Argument 1Mode: InsertUpdate, InsertGuaranteed, Update, or Delete

Syntax


ExecuteTextToTable "Target table name (can be a temp table)", "Key field name(s), comma-separated, used to match existing rows", "Mode: InsertUpdate, InsertGuaranteed, Update, or Delete"

Return to the AMSX Command Reference