Skip to content

Microsoft SQL Server

Microsoft SQL Server — query, insert, update, delete, and execute stored procedures.

PropertyValue
Typedatabase
Authenticationbasic
CategoryGeneric
FieldTypeRequiredDescription
hoststringYesDatabase server hostname
portnumberNoPort (default: 1433)
databasestringYesDatabase name
usernamestringYesUsername
passwordstringYesPassword
encryptbooleanNoEnable encryption
connection_stringstringNoFull connection string (overrides individual fields)

Execute a SELECT query with optional WHERE filters.

EndpointGET {table}
MethodGET

Insert a new row into a table.

EndpointPOST {table}
MethodPOST

Update rows matching WHERE conditions.

EndpointPUT {table}
MethodPUT

Delete rows matching WHERE conditions.

EndpointDELETE {table}
MethodDELETE

Execute a parameterized SQL query directly (use @p1, @p2, … for named params).

EndpointPOST raw
MethodPOST

Execute a SQL Server stored procedure with named parameters.

EndpointPOST proc:{procedureName}
MethodPOST
flows/webhook-to-mssql-stored-proc.yaml
flow: webhook-to-mssql-stored-proc
version: 1
description: Receive a webhook, call a stored procedure in MSSQL, and insert results to PostgreSQL
source:
connector: generic-webhook
trigger: webhook
event: inventory.updated
steps:
- name: run-inventory-calc
target: mssql-erp
action: call-stored-procedure
mapping:
procedureName: sp_CalculateReorderPoint
params:
"@WarehouseId": source.warehouse_id
"@ProductSKU": source.sku
"@CurrentStock": source.quantity_on_hand
store_as: reorder_result
- name: store-reorder-data
target: postgresql-analytics
action: insert
when: reorder_result.needs_reorder == true
mapping:
table: reorder_alerts
row:
sku: source.sku
warehouse_id: source.warehouse_id
current_stock: source.quantity_on_hand
reorder_point: reorder_result.reorder_point
suggested_qty: reorder_result.suggested_order_qty
created_at: "" | now
- name: notify-procurement
target: slack-internal
action: send-message
when: reorder_result.needs_reorder == true
mapping:
channel: "#procurement-alerts"
text: "Reorder needed: {{ source.sku }} at warehouse {{ source.warehouse_id }} — stock {{ source.quantity_on_hand }}, reorder point {{ reorder_result.reorder_point }}"
on_error:
retry: 3x exponential(30s)
then: dead-letter