Disconnect Db Version 9 (Java)
Action group: Databases
Description
Closes the connection to the database.
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
DB context | Connection context to the selected database | Robin.DbContext | Database context | Yes |
Special conditions of use
None.
Example of use
Task
Connect to MsSqlServer database and run the query and close the connection.
Запрос
SELECT * FROM Table1 ORDER BY id ASC;
Solution
Use the actions "Connect Standard Db", "Execute Sql Statement", "Disconnect Db".
Implementation
- Assemble a robot scheme consisting of actions:
- Set the parameters for the "Connect Standard Db" action (Instructions on how to connect to Microsoft SQL Server from Robin Studio).
- Set the parameters for the "Execute Sql Statement" action.
- Set the parameters for the "Disconnect Db" action.
- Click on the "Start" button in the top panel.
Result
The program robot completed successfully. The request to the database has been executed. Connection is closed.
Обзор
Инструменты контента