You can call the SQLCLI program with options:
sqlcli [<options>]
Call options for the database session
-n <database_server>[:<port>] |
Name of the computer on which the database instance is installed. The port used for the TCP/IP connection can also be specified. If you do not specify a computer name, the local computer and the standard MaxDB port are used. |
-d <database_name> |
Name of database instance |
-u <Name,Passwort> |
User name and password for logging on to the database instance |
-U <user_key> |
To log on using user keys [External] |
-S <SQLMODE> |
|
-y <timeout> |
Timeout value (in seconds) for the database session; if you do not specify this option, the default value for the database instance is used |
-z |
To deactivate AUTOCOMMIT (see AUTOCOMMIT Mode [External]) |
Call options for input and output
-i <file>
|
To read commands from a batch file [Page 6] (with complete path) |
-c <separator> |
When commands are read from a file, <separator> is used to separate the individual commands. The default value is // |
-o <file> |
To output the results to the file <file> |
-x |
To suppress additional outputs such as the number of selected rows in a result set |
-m |
To activate the multiple line mode for entering SQLCLI commands |
Call options for formatting the output
-F <separator> |
To define the character string that is to be used as a separator between the individual columns in the result set. Default value:| |
-g <null_value> |
To define the character for null values in the result set. Default value: ? |
-p <prefix> |
To define the character string that is to be output before each row in the result set. Default value:| |
-P <suffix> |
To define the character string that is to be output after each row in the result set. Default value:| |
-A |
Unformatted output of the result set, without being filled with blank characters. Columns are separated by commas and rows by line breaks. This output format is particularly suitable for generating comma-separated files (csf). |
-Q |
To output each column of the result set in a new line |
-a |
To suppress the output of the column names in the result set |
-f |
To output all SQL statements before they are sent to the database instance |
-b <MAXLENGTH> |
To define the maximum number of characters for outputting LONG [External] values. Default value: 10 characters |
Other call options
-h |
To display help |
-v |
To display the version information about the SQLCLI program |
-t |
To display debug information |