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:
- 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.
- Click Connect and get database information by clicking Database Info or View Tables.
- After connecting, enter a SQL command and click Execute.
- 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.