Skip to content
Microsoft SQL Server

How to use Microsoft SQL Server

DevelopersCost: 1 credit per runTechnical reference

What it is for

Microsoft's relational database engine, on-premise or as Azure SQL

Microsoft SQL Server triggers check for new data periodically, every few minutes, so there may be a short delay.

Set up the connection

Authentication type: Custom credentials

  1. 1Sign in to Microsoft SQL Server and look for the API or integrations section in its settings.
  2. 2Create an API key or token with the permissions you need and copy it.
  3. 3In flooows, add a Microsoft SQL Server step, click "Connect" and paste it into: Connection String, Host, Port, Database, Username, Password, Tenant ID, Client ID, Client Secret, Encrypt Connection, Trust Server Certificate, CA Certificate, Minimum TLS Version.
  4. 4Save the connection: it is stored encrypted and is never shown in plain text.
Connection fieldTypeRequired
Connection StringLong textNo
HostTextNo
PortNumberNo
DatabaseTextNo
UsernameTextNo
PasswordSecret keyNo
Tenant IDTextNo
Client IDTextNo
Client SecretSecret keyNo
Encrypt ConnectionYes / NoYes
Trust Server CertificateYes / NoYes
CA CertificateLong textNo
Minimum TLS VersionFixed listNo

Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.

How to use it in a flow

  • Find Rows: fill in Table; use the data selector to map values from earlier steps.
  • Insert Row: fill in Table, Values; use the data selector to map values from earlier steps.
  • Insert Multiple Rows: fill in Table, Rows; use the data selector to map values from earlier steps.

Tips

  • •Test each step before publishing to see the exact output structure.
  • •Enable retries on steps that call external services.

Triggers (1)

Events that can start a flow. Expand each one to see its fields.

New or Updated RowPeriodic check3 fields
FieldTypeRequired
TableList (from your account)Yes
Column to order byList (from your account)Yes
Order DirectionFixed listYes

Actions (7)

Operations available as flow steps. Expand each one to see its fields.

Find Rows7 fields
FieldTypeRequired
TableList (from your account)Yes
ColumnsList of valuesNo
ConditionTextNo
ParametersKey / value pairsNo
Order ByList (from your account)No
Order DirectionFixed listNo
LimitNumberNo
Insert Row2 fields
FieldTypeRequired
TableList (from your account)Yes
ValuesKey / value pairsYes
Insert Multiple Rows4 fields
FieldTypeRequired
TableList (from your account)Yes
RowsDynamic fieldsYes
Keep Empty StringsYes / NoNo
Return Inserted RowsYes / NoNo
Update Rows4 fields
FieldTypeRequired
TableList (from your account)Yes
ValuesKey / value pairsYes
Search ColumnList (from your account)Yes
Search ValueTextYes
Delete Rows3 fields
FieldTypeRequired
TableList (from your account)Yes
Search ColumnList (from your account)Yes
Search ValueTextYes
Get Tables0 fields

No fields to configure.

Run Query3 fields
FieldTypeRequired
QueryLong textYes
ParametersKey / value pairsNo
Query Timeout (ms)NumberNo

Common errors

Authentication error

The connection expired or the key was revoked: reconnect it from Connections.

Field not found or empty

Re-test the previous step and remap the field in the data selector.

Field types

"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps