Database API Reference

AdvantageBuilder provides a unified set of database helper functions that can be used from JScript.NET, ClearScript V8, and PowerShell macros and templates. These APIs let you execute commands, retrieve datasets, and work with XML representations of data using the current connection or an explicit connection string.

Supported Runtimes

The database APIs are available from:

ExecuteNonQuery

Executes a non‑query command (INSERT, UPDATE, DELETE, DDL) and returns the number of affected rows.

ExecuteDataset

Executes a query and returns a dataset object.

ExecuteDatasetXML

Executes a query and returns an XML representation of the dataset.

ExecuteBatchTran

Executes multiple statements in a single transaction (INSERT, UPDATE, DELETE, DDL) and returns the number of affected rows.

DataRow Helpers (JavaScript)

Additional helper available from the JavaScript runtimes:

Creating Datasets

You can create an empty dataset object and populate it programmatically: