USA
800 691 9120
UK
01225 704844
We use cookies on our website to analyze website usage and to help secure the website against misuse. Advertising and functional cookies are not used in our site or our web application products.
By clicking “Accept Essential Cookies Only”, you consent to us placing these cookies.
Execute a named SQL template with positional argument substitution
Looks up a SQL template by name (first in locally defined templates, then in SpecialOptions), replaces %arg1% through %arg41% placeholders with the supplied arguments, and executes the resulting SQL. Use to reuse parameterised SQL fragments across scripts.
| Parameter | Description |
|---|---|
| cmd | Template name to look up |
| Argument 0 | Value substituted for %arg1% in the template |
| Argument 1 | Value substituted for %arg2% in the template |
ExecuteSqlTemplate "Template name to look up", "Value substituted for %arg1% in the template", "Value substituted for %arg2% in the template"