Zoomed Image

AMSX Scripting Language - Command : AddSqlTemplate

Summary

Register a named SQL template for later use

Description

Stores a named SQL template string in memory so it can be referenced by name in later AMSX commands (e.g. RunSqlTemplate). Useful when the same parameterised SQL is executed repeatedly with different values.

Parameters

ParameterDescription
cmdTemplate name to register
Argument 0SQL string for the template

Syntax


AddSqlTemplate "Template name to register", "SQL string for the template"

Return to the AMSX Command Reference