pvddl(1)

NAME
pvddl - run SQL statements from a command file.

SYNOPSIS
pvddl database commandfile

[-username username] [-password password]

[-server servername] [-port number] [-stopOnFail]

DESCRIPTION
pvddl is used to execute a series of SQL statements in a command file.

OPTIONS

database
    Database against which the SQL statements in the command file are to be executed (this can be a database name or a server DSN).

commandfile
    Text file that contains the SQL statements. Certain categories of SQL statements, such as data definition language, are better suited for use in the command file. (Contrast this with a data manipulation statement such as SELECT. A SELECT statement can be used, but the result set is not returned to standard output.) You need a separator character between each command in your command file. The default separator is the # character.

-username username
    Name of a user defined for a database with security enabled.

-password password
    Password for the user identified by username.

-server server
    Name of the server on which the database is defined. If you do not specify this option, the local machine is assumed. You may also specify the IP address of the server.

-port number
    TCP port number listened to by the database engine running on the server. If you do not specify this option, the default port 1583 is assumed. (Port 1583 is the default port used for the relational interface.)

-stopOnFail
    Stop when the first SQL error is encountered in the command file. Pvddl returns an error code of PS_E_FAIL if an error is encountered. The default action is for pvddl to continue after an SQL error is encountered.

SEE ALSO
SQL Engine Reference for more information about supported SQL syntax.