Microsoft SQL Server
Connects to Microsoft SQL Server (on-premises or hosted on a virtual machine) using the Microsoft SQL client (Microsoft.Data.SqlClient). SQL is sent to the server as written, so the full Transact-SQL dialect is available, including stored procedures.
Connection Properties
The connection settings are the standard Microsoft SQL client properties. The most commonly used ones are listed below; the other properties shown in the property grid behave as described in the Microsoft SqlConnectionStringBuilder documentation.
A new data source starts with Integrated Security = true, Multiple Active Result Sets = true and Trust Server Certificate = true.
Server
Data Source
—
Required. Server name, e.g. SQLSRV01, SQLSRV01\INSTANCE or sqlsrv01.contoso.com,1433
Initial Catalog
—
Database name
Connect Timeout
15
Seconds to wait for the connection to open
Command Timeout
30
Seconds to wait for a statement to complete
Application Intent
ReadWrite
ReadOnly routes the connection to a readable secondary of an availability group
Multi Subnet Failover
false
Set to true when connecting to an availability group listener
Application Name
—
Name shown for the connection in server monitoring tools
Authentication
Integrated Security
true
Windows authentication, using the account that runs appRules. Set to false to use a SQL login
User ID
—
SQL login name
Password
—
Password of the SQL login
Typical combinations:
Windows account
Integrated Security true (default)
SQL login
Integrated Security false, User ID, Password
With Windows authentication, the connection is made as the Windows account running the appRules service, not as the user signed in to the portal. That account needs a login on the SQL Server.
For Azure SQL Database and Microsoft Entra authentication, use the Azure SQL data source.
Encryption
Encrypt
true
Encrypt the connection
Trust Server Certificate
true
true: the server certificate is not validated, so servers with a self-signed certificate are accepted. Set to false to validate it
Host Name In Certificate
—
Expected host name in the server certificate, when it differs from Data Source
Pooling and Resilience
Pooling
true
Reuse database connections between requests
Min Pool Size
0
Connections kept open in the pool
Max Pool Size
100
Maximum connections in the pool
Multiple Active Result Sets
true
Allows several open result sets on one connection (MARS)
Connect Retry Count
1
Reconnection attempts after a dropped idle connection
Connect Retry Interval
10
Seconds between reconnection attempts
Supported SQL
Tables and columns
Tables and views are addressed as
TableorSchema.Table. Tables in thedboschema are listed without the schema prefix.Names containing spaces or special characters, names starting with a digit and reserved words are written in square brackets:
[Order Details],[User].Primary keys and foreign keys are read from the database.
SELECT
Queries are executed by the server as written. Everything Transact-SQL supports is available: joins, sub-queries, GROUP BY, aggregate and window functions, UNION, common table expressions (WITH), TOP, OFFSET … FETCH, JSON functions, and so on.
INSERT, UPDATE, DELETE
Statements are sent unchanged. DDL (
CREATE,ALTER,DROP,TRUNCATE),MERGEand multi-statement batches can also be executed.Saving records through a workflow target requires the table to have a primary key (used to locate the row to update or delete).
Stored procedures
Stored procedures are supported, with input, output, input/output and return-value parameters. Result sets returned by a procedure are available as records.
Parameters
Named parameters are written @name.
Transactions
Transactions are supported and are handled by the server.
Last updated