~4 min9 / 14

Database Activities

Run SQL queries against SQL Server, SQLite, MySQL, and PostgreSQL directly from your workflows. All database activities share a connection string and support parameterised queries to prevent SQL injection.

Database ConnectDatabase Connect

Open a connection to SQL Server, SQLite, or PostgreSQL database.

ParameterTypeRequiredDefaultDescription
ProviderStringYesSQLiteDatabase provider to connect to Allowed: SQLServer, PostgreSQL, SQLite
ConnectionStringStringYesDatabase connection string (e.g., Data Source=mydb.db; or Server=localhost;Database=mydb;User Id=sa;Password=xxx;TrustServerCertificate=True)
OutputVariableStringNodbConnectionVariable name to store the database connection for reuse

Database TransactionDatabase Transaction

Begin, Commit, or Rollback a database transaction.

ParameterTypeRequiredDefaultDescription
ActionStringYesBeginTransaction operation to perform Allowed: Begin, Commit, Rollback
ConnectionVariableStringYesdbConnectionVariable name containing the open database connection
TransactionVariableStringYesdbTransactionVariable name to store/retrieve the transaction object
IsolationLevelStringNoReadCommittedTransaction isolation level (only used with Begin action) Allowed: ReadUncommitted, ReadCommitted, RepeatableRead, Serializable, Snapshot

Execute QueryExecute Query

Execute a SQL query against SQL Server, SQLite, or PostgreSQL.

ParameterTypeRequiredDefaultDescription
ConnectionVariableStringYesVariable name containing an open database connection (from Database Connect)
QueryStringYesSQL query to execute (SELECT, INSERT, UPDATE, DELETE)
QueryTypeStringNoSelectType of query to determine how results are handled Allowed: Select, NonQuery
OutputVariableStringNoqueryResultVariable to store query results (rows for SELECT, affected count for NonQuery)

Execute Stored ProcedureExecute Stored Proc

Execute a stored procedure with parameters on SQL Server or PostgreSQL.

ParameterTypeRequiredDefaultDescription
ConnectionVariableStringYesVariable name containing an open database connection (from Database Connect)
ProcedureNameStringYesName of the stored procedure to execute (e.g., dbo.GetCustomers)
ParametersStringNoParameters in format: @Name=Value;@Age=25;@City={variableName}
ResultTypeStringNoDataSetHow to handle the stored procedure results Allowed: DataSet, Scalar, NonQuery
CommandKindStringNoStoredProcedureUse StoredProcedure for procedure execution, or Text to run SQL text (useful for SQLite testing) Allowed: StoredProcedure, Text
OutputVariableStringNospResultVariable to store the procedure results

Execute Stored ProcedureExecute Stored Procedure

Execute a stored procedure with parameters on SQL Server or PostgreSQL.

ParameterTypeRequiredDefaultDescription
ConnectionVariableStringYesVariable name containing an open database connection (from Database Connect)
ProcedureNameStringYesName of the stored procedure to execute (e.g., dbo.GetCustomers)
ParametersStringNoParameters in format: @Name=Value;@Age=25;@City={variableName}
ResultTypeStringNoDataSetHow to handle the stored procedure results Allowed: DataSet, Scalar, NonQuery
CommandKindStringNoStoredProcedureUse StoredProcedure for procedure execution, or Text to run SQL text (useful for SQLite testing) Allowed: StoredProcedure, Text
OutputVariableStringNospResultVariable to store the procedure results
Was this helpful?