SQL for Reality > Setting Up a Working System > Connecting using SQL/JDBC

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

RealityV15.1Online Documentation (MoTW) Revision 7

Setting-up the SQL/JDBC Software on a Client System (SQL) (m691503+jdbc.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

Setting-up the SQL/JDBC Software on a Client System

Refer to the Reality External Components Installation Guide for details of how to install and configure the SQL/JDBC software.

Connecting using SQL/JDBC

Once you have installed and configured the SQL/JDBC software, you should check that you can connect to a Reality database. On Windows, the installation procedure places a shortcut to a program called RealJTest on your desktop. In UNIX, you can run RealJTest by entering the command java RealJTest.

When you run RealJTest, you will see the following:

RealJTest Utility dialog

Enter the following information:

When you have entered all this information, click the Connect button. The title of the Connect button should change to Disconnect and the connect string should be displayed beside the Disconnect button.

Once you are connected, you can enter SQL statements into the Command text area. When you click the Execute button, these will be executed and the results displayed in the Results text area.

If Reality transaction handling is enabled, you can create and populate two small test tables, STAFF and CARS, by selecting the Create Test Tables command from the Database menu. The Recent drop down combo box will be populated with a small number of pre-defined SQL queries for you to try out. The tables may be deleted by selecting the Delete Test Tables command.

RealityV15.1 (MoTW) Revision 7Comment on this topic