# SQL Server trigger - Workflow trigger | Docs - nodulz

Source: https://nodulz.com/docs/nodes/mssql_trigger

Language: en

React to rows added, changed or deleted in SQL Server

## Usage and specifics

Select a SQL Server credential and target resource. Account permissions apply to queries and monitoring. Trigger settings determine which changes are detected after publishing.

Technical type : `mssql_trigger`. Runtime : `nodulz`.

## Credentials and prerequisites

- [Microsoft SQL Server](/docs/credentials) (`database` / `mssql`). SQL Server or Azure SQL database

Create credentials in your nodulz instance’s Credentials area, then select them on the node. Availability depends on ownership and sharing. See the [credentials guide](/docs/credentials) for access and rotation.

## Parameters

Names below are technical keys. Defaults are not a ready-to-run configuration: complete fields required by your operation. Paths containing [] describe list items; some fields depend on the selected mode.

| Parameter | Type | Default | Values / limits |
| --- | --- | --- | --- |
| `credentialId` | `string` | `""` | - |
| `table` | `string` | `""` | - |
| `keyColumn` | `string` | `"id"` | - |
| `mode` | `enum` | `"snapshot"` | `snapshot`, `change_tracking` |
| `events` | `array` | `["insert"]` | -; min 1 |
| `pollInterval` | `number` | `60` | -; ≥ 10, ≤ 86400 |
| `testPayload` | `string` | `""` | - |

## Configuration help

| Setting | Purpose and guidance |
| --- | --- |
| `credentialId`<br>Connection credential | SQL Server credential. Enable SSL for Azure SQL. |
| `table`<br>Table | Table name, for example dbo.users. |
| `keyColumn`<br>Unique key column | Unique, non-null column, for example id. |
| `mode`<br>Change detection | Change Tracking is more reliable and faster, but must be enabled on the database and table. |
| `events`<br>Events | At least one event. |
| `pollInterval`<br>Polling interval (seconds) | The first pass sets the baseline and triggers nothing. |
| `testPayload`<br>JSON test data | Event used for a manual test. Empty: generated example. |

## Initial configuration

Initial catalog configuration example, to adapt before running. Keep secrets in credentials.

```json
{
  "credentialId": "",
  "table": "",
  "keyColumn": "id",
  "mode": "snapshot",
  "events": [
    "insert"
  ],
  "pollInterval": 60,
  "testPayload": ""
}
```

## Verification

Test with representative data. Check node output in the inspector and logs, then use editor mapping for downstream fields. A trigger test with a simulated payload does not validate external service delivery.

See also : [Expressions and data](/docs/expressions), [Executions](/docs/executions), [Node catalog](/docs/nodes).

## Explore further

- [Features - nodulz](https://nodulz.com/product/overview)
- [Node catalog - nodulz](https://nodulz.com/product/catalog)
- [MCP server - nodulz](https://nodulz.com/product/mcp)
- [Pricing - nodulz](https://nodulz.com/pricing)
- [Use cases and workflow automation - nodulz](https://nodulz.com/use-cases)
- [Choose what your workflows can do. - nodulz](https://nodulz.com/compare)
- [Documentation - nodulz](https://nodulz.com/docs)
