Pervasive PSQL JDBC Sample Command Line

This is a sample command line that connects to a PSQL database, takes queries from the user and displays results. It requires connection parameters as inputs.

To launch the application from the java virtual machine (JVM) command line:
    set CLASSPATH=<PathToPSQLJDBC>\pvjdbc2.jar;<PathToPSQLJDBC>\pvjdbc2x.jar;<PathToPSQLJDBC>\jpscs.jar;<PathToDBSample>
    java DBSample

Once the application starts:
  1. Fill in the required fields:
    Server Name -- Host name or IP address of the PSQL server.
    Port Number -- TCP port number where PSQL's LNA is 'listening'. By default port 1583.
    Server DSN -- Data Source Name on the PSQL server.
  2. Click Connect and get database information by clicking Database Info or View Tables.
  3. After connecting, enter a SQL command and click Execute.
  4. To view the source code, click here.

DBSample


If the connect succeeds, the Connect button will become the Disconnect button.
© 1998-2008 Pervasive Software Inc. All rights reserved.