This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
bw:sql_command_tool [2020/12/14 17:35] akoehler [SQL Tools] |
bw:sql_command_tool [2022/08/02 10:35] (current) akoehler [SQL System Variables] |
||
|---|---|---|---|
| Line 16: | Line 16: | ||
| The following pages contain additional information that may be helpful with the development of Bizweaver workflows using the SQLCommand tool. | The following pages contain additional information that may be helpful with the development of Bizweaver workflows using the SQLCommand tool. | ||
| - | * [[bw: | + | |
| ====== Before You Begin ====== | ====== Before You Begin ====== | ||
| 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 image shows same SELECT statement as illustrated above, but with a variable in the WHERE clause. | + | The following image shows the same SELECT statement as illustrated above, but with a variable in the WHERE clause. |
| {{ : | {{ : | ||
| + | |||
| + | <WRAP center round important> | ||
| + | When saving a workflow or opening the SQL/HANA tool or the workflow, the reader command type will validate the written query. This executes the query against the connected database. **There is the ability to have Non-query commands written using the Reader command type. This will execute the statement against the database. If a Create, Update, Insert, Truncate or Delete (any SQQL/HANA statement that affects a change to any data) is written, the command will execute and be run against the connected database if the workflow is saved or the tool or workflow is opened** | ||
| + | </ | ||
| ===== Non-Query (SQL Server only) ===== | ===== Non-Query (SQL Server only) ===== | ||
| Line 132: | Line 136: | ||
| Click the green <color # | Click the green <color # | ||
| </ | </ | ||
| + | |||
| + | |||
| + | ====== 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====== | ||