Execute SELECT Query#
Execute a SELECT query to the database.
| Connection String | [Text] The connection string to the database. The string is specified according to the selected provider. When using an already open connection, do not set this property, but specify a variable with the current connection object in the "Connection Reference" property. |
| User | [Text] The username for authentication. |
| Password | [Text/SecureString] The password for authentication. |
| SQL Provider | Select the SQL provider. |
| Connection Reference | [Link] The SQL connection object. The variable name in this property must match the variable name in the "Connection Reference" property of the "Connect" block from the Databases group that was previously used to connect to SQL. |
| Query String | [Text] The query string. The string is written according to SQL language rules. For example, |
| Input Parameters | [Dictionary] Input parameters. The dictionary must contain key values as parameter names without the @ symbol. The dictionary values are the parameter values. By default, the parameter type is NVarChar(MAX). |
| Timeout | [Number] The timeout for executing the query in seconds. |
| Result | [Data Table] A table with the query result. |
| Error Handling Level | Select the error handling level. Possible values:
If "Default" is selected, the value from the "Start" block of this diagram will be used. |
| Message Level | Select the message level that the blocks will output during operation. Possible values:
If "Default" is selected, the value from the "Start" block of this diagram will be used. |
| Error Text | [Text] Returns detailed information about the error in case of incorrect execution of the block's work. |