Module Execute SQL
Execute SQL commands on a connected ODBC source. Separate different commands with a semicolon (';').
- Author: O.Conrad (c) 2010
- Menu: Database|ODBC|Tools
Parameters
| Name | Type | Identifier | Description | Constraints |
Options | DSN | Text | ODBC_DSN | Data Source Name | - |
User | Text | ODBC_USR | User Name | - |
Password | Text | ODBC_PWD | Password | - |
Server Connection | Choice | CONNECTION | Server Connection | Available Choices: [0] Default: 0 |
SQL Statment | Long text | SQL | - | Default: CREATE TABLE myTable1 (Col1 VARCHAR(255) PRIMARY KEY, Col2 INTEGER); INSERT INTO myTable1 (Col1, Col2) VALUES('First Value', 1); DROP TABLE myTable1;
|
Commit | Boolean | COMMIT | - | Default: 1 |
Stop on Error | Boolean | STOP | - | Default: 0 |
Command-line
Usage: saga_cmd db_odbc 3 [-ODBC_DSN <str>] [-ODBC_USR <str>] [-ODBC_PWD <str>] [-SQL <str>] [-COMMIT <str>] [-STOP <str>]
-ODBC_DSN:<str> DSN
Text
-ODBC_USR:<str> User
Text
-ODBC_PWD:<str> Password
Text
-SQL:<str> SQL Statment
Long text
Default: CREATE TABLE myTable1 (Col1 VARCHAR(255) PRIMARY KEY, Col2 INTEGER);
INSERT INTO myTable1 (Col1, Col2) VALUES('First Value', 1);
DROP TABLE myTable1;
-COMMIT:<str> Commit
Boolean
Default: 1
-STOP:<str> Stop on Error
Boolean
Default: 0