This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
bw2:sql_command_tool [2022/06/07 09:50] akoehler [Reader (SQL Server and HANA)] added information for SQL/HANA Reader statement |
bw2:sql_command_tool [2023/12/29 14:09] (current) wgates [Reader (SQL Server and HANA)] |
||
|---|---|---|---|
| Line 59: | Line 59: | ||
| - When variables are used, they are subject to standard syntax rules regarding text vs. numeric values. This means that text variables MUST be enclosed in single quotes. | - When variables are used, they are subject to standard syntax rules regarding text vs. numeric values. This means that text variables MUST be enclosed in single quotes. | ||
| - | The following | + | The following shows the same SELECT statement as illustrated above but with a variable in the WHERE clause. |
| - | {{ : | + | <code sql> |
| + | SELECT | ||
| + | CardCode, | ||
| + | CardName | ||
| + | FROM ocrd | ||
| + | WHERE CardCode = ' | ||
| + | </ | ||
| Line 130: | Line 136: | ||
| Changes in the [Result] tab **DO NOT** automatically carry back to the [SQL] tab. If you make changes in the [Result] tab that needs to be in the " | Changes in the [Result] tab **DO NOT** automatically carry back to the [SQL] tab. If you make changes in the [Result] tab that needs to be in the " | ||
| </ | </ | ||
| + | |||
| + | ====== SQL System Variables ====== | ||
| + | |||
| + | ^ Name ^ Description | ||
| + | | CommandType | ||
| + | | DataSourceFields |The fields pulled from the data source will only show up when executing the query in the SQL tool and not during a test run| | ||
| + | | DataSourceResultsTable | ||
| + | | QueryString | ||
| + | | SQLCommand | ||
| + | | SQLResultsCount | ||
| + | |StepMessage | ||
| + | | StepStatus | ||
| + | |||
| ======SQL Tips====== | ======SQL Tips====== | ||