The Data Tools contribution offers features to allow you to work with a
variety of databases.
You can connect to the database, load and view database objects, sample the contents
of tables, and execute SQL statements and commands.
This information will get you started using these features.
Before using the Data Tools components, you will need to have access to a supported database and the information required to connect to it.
The following sections give step-by-step instructions on how to use the Data Tools functions.
The Data Tools provides two views: the Database Explorer view and the DB Output view.
The Database Explorer view is where you will create connections, view your
database objects and launch actions from those objects. The DB Output view is
where query results and messages are displayed.
To open the Database Explorer view, select Window->Show view->Other->Data->
Database Explorer.
To open the DB Output view, select Window->Show view->Other->Data->
DB Output view.
Rearrange the views as follows:
{Can add Connection screencaps in this section}
You can connect to a variety of database systems using the Connection Wizard.
Once connected, the database metadata is loaded, allowing you to view the
schemas, tables, columns and their data types.
For example, if you have DB2 UDB v8.1 installed and the SAMPLE database
created, you can follow these steps to connect and load its database metadata:
In the Database Explorer, you will see a tree structure representing your
connection and the database objects retrieved.
You can sample the contents of a table and see its data appear in the DB Output view.
To sample the data from a table, expand the connection, database, schema and
Tables nodes in the Database Explorer. Using a table's context menu, select
Sample Contents. This displays the table's data in the Results tab of the DB
Output view.
The Data Tools offer a way to execute SQL statements and commands through
its SQL Scrapbook editor.
To invoke the SQL Scrapbook, select Open SQL Scrapbook from the connection node
context menu in the Database Explorer. The SQL Scrapbook opens in the editor
area. Type a SQL statement or command then execute it by selecting Execute from
the SQL menu or by selecting the Execute icon in the toolbar.
We encourage development/design feed back on the wtp-dev mailing list. You can subscribe to the list via this link.
For usage questions, discussion of bugs, and strange behaviour please post to the eclipse.webtools newsgroup. Information on the Web Tools Platform newsgroup can be found here.