Skip to main content
The MSSQLResourceClient provides query execution and schema discovery against Microsoft SQL Server databases.

Usage

Inputs

The invoke method accepts the following arguments:
string
required
The SQL query string to execute. Use @p1, @p2, etc., for parameterized queries.
(string | number | boolean | null)[]
An array of values for the parameterized query.
string
required
A unique identifier for this operation, used for tracing and logging.
number
Optional timeout in milliseconds for the query execution.

Outputs

On success (ok: true), the result object contains:
"database"
Discriminator for the response type.
Record<string, unknown>[]
An array of objects representing the rows returned by the query.
number
The number of rows affected by the query.

Schema Discovery

The client supports listing schemas, tables, and columns for exploring your database structure.