|
YOUR FEEDBACK
Did you read today's front page stories & breaking news?
SYS-CON.TV SYS-CON.TV WEBCASTS |
POWERBUILDER LINKS YOU MUST CLICK ON Eclipse Using the Eclipse Data Tools Platform with PowerBuilder and SQL Anywhere
Now a top-level project at eclipse.org
By: José Ramos
May. 29, 2008 08:15 AM
If you expand the Databases folder in the view, you should see the
connection profile you just created, and any other connection profiles
you've created. If the connection is successful, you should see results similar to the image below. The tables for the SQL Anywhere sample database are located in the GROUPO schema, so expand 'demo' | Schemas' | 'GROUPO' | 'Tables' and you should be able to view all of your tables. You can also expand any table for a list of columns and column-types (see Figure 14). The Data Source Explorer offers a great deal of functionality in itself. Right-clicking on any object lets you generate DDL for that object. In the image above, generating DDL for the object 'demo' (top of the tree) will generate DDL for the entire database, whereas generating DDL for the table 'Contacts' will just give you the DDL pertinent to that table. This tool can be used to generate a data definition of any data source you can connect to. Right-clicking on a table or view also gives you a 'Data' sub-menu. From this sub-menu, you can choose to edit the information in that table or view, or sample its contents.
Querying the SQL Anywhere Database
Next we must open a new SQL File, which we can use to create and execute SQL commands.
We must now specify what project this SQL File will belong to and what connection profile it will be executed against. If your SQL statement executes successfully, you should see the results of the statement in the Results view that we opened earlier. If the statement was a query, the Results view will display the returned records. If it's not a query, you'll be notified of the statement's success and how many rows were affected. Query results should look like the image below (see Figure 19). This wraps up the tutorial. You may now close Eclipse and shut down the demo database we started earlier.
Summary The activities we walked through in this tutorial are just an introduction to some of the features available in the DTP framework and tools. We hope it will give you enough familiarity to continue exploring on your own. Since DTP is an open source project, it depends on involvement from the community to a large extent. Please feel free to contribute bug reports, feature requests, and general comments to the DTP project team. Their project home page is located at www.eclipse.org/datatools.
YOUR FEEDBACK
PBDJ LATEST STORIES . . .
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
|
SYS-CON FEATURED WHITEPAPERS MOST READ THIS WEEK BREAKING POWERBUILDER / SYBASE NEWS
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||