A method of generating commands for a database server includes accessing a
script having parser-specific commands, a first set of database-specific
commands and optional shell commands. A componentized batch parser splits
out the different command types and converts the parser-specific commands
into a second set of database-specific commands. The first set and second
set of database-specific commands may be sent to a target database for
execution. The optional shell commands may be executed by a user tool at
a local console. The batch parser offers features including separation of
parsing functions using batch separators, performing automatic
substitution of tokens in the script with defined values or substitution
of tokens by requesting token values via a client tool, stripping off
comments and blanks spaces from processed commands, referencing and
editing files outside the script, and the ability to connect to different
servers.