database.md

Database

The Database block executes an ODBC-compliant query against a database (for example Oracle, SQL Server, DB2, MySQL, MongoDB, or any other ODBC-compliant database). This is useful for driving automation cases with database data and validating outcomes based on query results.

See the Database lesson to see examples of how to use data from databases in test cases.

Fully expanded, the Database block looks like this:

Note: The screenshot on this page uses the Elegance Design, introduced in 2025.3. If you are using an earlier version, your layout may look different.

Quick-start

  1. Drag Database onto the canvas.
  2. Connect the block in the flow and optionally specify the basic parameters required for this block to operate: Connection, Query, Method.
  3. Run the flow when it's ready.

Building block parameters

Parameters

Resources

Topic Description
Flows FAQ Common questions about creating, running, and managing flows in Leapwork.
Flows Troubleshooting Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork.