This command is used to execute directly requests to specified in parameters database table. Command allows executing insert, update, any stored procedures, any SQL statement.
any SQL statement. This statement required «sqlstatement» parameter that must contain SQL query;
standard statements. This is select\insert\update or stored procedure statements. «statement» parameter must contain statement type. Command manager support such statements: select, update, insert, sp.
This statement allows to execute any user defined SQL query. Statement has only one parameter that must be specified:
sqlstatement – this is user defined SQL query that will be executed. As in «select» statement, if user defined SQL query, returns any result data, it will be printed to output stream;
Example
cmdmgr.exe dbrequest --sqlstatement="select * from eaglemgr.dbo.cmdmgr_test_table " -df --maxrows=25 –asis
Most statements have optional parameters that are the same in any context. Here are these parameters and their descriptions:
section – this is section from db_connection.ini. By default, primary section used;
df(disableformatting) – switches off advanced output formatting;
maxrows – maximum rows count to output;
asis – print output data, without replacing data to columns type (<BLOB>, <CLOB>, <XML> .etc);
xml – output will be formatted in XML. If this parameter is specified, --asis and --disableformatting will be ignored.
Add Comment