sqlexp -db database-name -S port service-name -H host -user userid -password password
|
sqlexp -url jdbc:datadirect:openedge://host:port;databaseName=db_name;
servicename=service_name -user userid -password password |
sqlexp -char -db sports2000 -S port -infile CreateView.sql -outfile CreateView.out -user userid -password \'\'
|
sqlexp -char -db sports2000 -S port -infile SelectView.sql -outfile SelectView.out -user userid -password \'\'
|
Command Line argument
|
Mandatory/Optional
|
Comments
|
-user <user>
|
Optional
|
The default value is the current user name.
|
-password <passwd>
|
Optional
|
The default value is the current user password.
|
-url <url>
|
Mandatory
|
The URL option maybe specified in place of the -db, -S and the -H options. The URL should be of this format: jdbc:datadirect:openedge://<host>:<port>;databaseName=<dbname> or jdbc:datadirect:openedge://<host>:-1;databaseName=<dbname>;serviceName=<service>
|
-db <database>
|
Mandatory
|
This option need not precede the database specification option.
|
-S <service|port>
|
Mandatory
|
Service name or port number may be specified as an argument to the -S option.
|
-H <host>
|
Optional
|
The default entry for this argument is localhost.
|
-driverUrl <url>
|
Mandatory
|
The format of the URL should be "jdbc:datadirect:openedge://<host>:<port>;databaseName=<dbName>;User=<user>;Password=<password>". The driverUrl must be enclosed in quotes. All fields listed above must be present. In addition, driver connection parameters can also be added to the url. For example, SSL options are now driver connection parameters. To enable encryption without authentication, the -driverUrl option should be as follows: "jdbc:datadirect:openedge://<host>:<port>;databaseName=<dbName>;User=<user>;Password=<password;EncryptionMethod=ssl;validateServerCertificate=false"
|
-infile <infile>
|
Optional
|
This option is used in character mode only. The SQL Explorer executes the commands in the input file and terminates.
|
-outfile <outfile>
|
Optional
|
This option is used in character mode only. Redirects SQL command output from standard output to named file.
|
-command <command>
|
Optional
|
This option is used in character mode only. The SQL Explorer executes the specified SQL command then terminates.
|
-sqlverbose
|
Optional
|
This option is used in character mode only. Beginning and ending time stamps are printed along with number of rows and columns fetched, and the fetch limit.
|