Workflows
Blocks
Integrations
Microsoft SQL

Microsoft SQL

The Microsoft SQL block runs queries against a Microsoft SQL Server database from your workflow — read data with custom queries, and insert, update, or delete rows.

Database Automation: Look up a customer, insert a new order row, or clean up old records as part of any workflow — with workflow variables passed safely as query parameters.

⚠️

Microsoft SQL is not available on the Free plan. Upgrade your workspace plan to use this block.

Key Features

  • Execute Query: Run any SQL statement and read the returned rows
  • Insert Row: Add a row with parameterized values (protected against SQL injection)
  • Update Rows: Change columns on rows matching a WHERE clause
  • Delete Rows: Remove rows matching a WHERE clause
  • Response Mapping: Save rows, row counts, and affected-row counts into variables
  • Secure Connections: Encryption on by default, with an option to trust self-signed certificates

Operations

OperationRequired fieldsNotes
Execute QueryQueryAny SQL statement; returned rows go to the output
Insert RowTable, ValuesValues is a JSON array, e.g. ["Jane", "jane@x.com"]. Columns is an optional comma-separated list, e.g. name, email
Update RowsTable, Columns, WHERE clauseColumns is a JSON object of column → new value, e.g. {"status": "shipped"}
Delete RowsTable, WHERE clauseDeletes every row matching the WHERE clause
⚠️

Update and Delete apply to every row matching the WHERE clause. Double-check the clause — a too-broad condition changes more rows than you expect.


Configuration

ParameterTypeRequiredDescription
Microsoft SQL accountCredentialYesThe database connection to use
ActionSelectYesOne of the four operations above
QueryTextExecute QueryThe SQL to run; supports {{variables}}
TableTextInsert / Update / DeleteThe target table name
ColumnsTextUpdate (JSON object) / Insert (optional list)See the operations table for the format per action
ValuesJSON arrayInsertThe row values, bound as query parameters
WHERE clauseTextUpdate / DeleteCondition selecting the rows to change, without the WHERE keyword
Response mappingValue → VariableNoSave response values into workflow variables

Setting up the credential

  1. Collect your SQL Server connection details: host (e.g. myserver.database.windows.net), port (default 1433), database name, username, and password.
  2. In the block settings, click to add a Microsoft SQL connection.
  3. Enter the Host, Port, Database, Username, and Password.
  4. Optionally enter a Domain for Windows (NTLM) authentication.
  5. Leave Encrypt on (required for Azure SQL). Enable Trust Server Certificate only if your server uses a self-signed certificate.
  6. Save the credential and select it in the block.

Make sure your SQL Server allows connections from your Indite instance — check firewall rules and, for Azure SQL, the server's network access settings.


Example: save chatbot signups

  1. A Webhook Trigger receives a new signup from your bot.
  2. A Microsoft SQL block with Insert Row adds it: Table Customers, Columns name, email, Values ["{{name}}", "{{email}}"].
  3. A second block with Execute Query runs SELECT COUNT(*) AS total FROM Customers and maps Rows to a variable for a daily report.

Output

Use Response mapping to extract values into variables:

ValueDescription
RowsThe rows returned by the statement (Execute Query)
Row CountHow many rows were returned
Affected RowsHow many rows an Insert / Update / Delete touched
SuccessWhether the operation succeeded
Full DataThe complete raw result
Indite Documentation v1.7.1
PrivacyTermsSupport