YOUR FEEDBACK
Werner Keil wrote: Java 6 update 10. If I'd be running Apple, I'd probably really drop dead...
AJAXWorld RIA Conference
$300 Savings Expire September 5th. Register Today and SAVE!


2008 East
DIAMOND SPONSOR:
Data Direct
Frontiers in Data Access: The Coming Wave in Data Services
PLATINUM SPONSORS:
Red Hat
The Opening of Virtualization
Intel
Virtualization – Path to Predictive Enterprise
Green Hills
IT Security in a Hostile World
JBoss / freedom oss
Practical SOA Approach
GOLD SPONSORS:
Software AG
The Art & Science of SOA: How Governance Enables Adoption
PlateSpin
Effective Planning for Virtual Infrastructure Growth
Fujitsu
Automated Business Process Discovery & Virtualization Service
Ceedo
Workspace Virtualization
Click For 2007 West
Event Webcasts

2008 East
PLATINUM SPONSORS:
Appcelerator
Think Fast: Accelerate AJAX Development with Appcelerator
GOLD SPONSORS:
DreamFace Interactive
The Ultimate Framework for Creating Personalized Web 2.0 Mashups
ICEsoft
AJAX and Social Computing for the Enterprise
Kaazing
Enterprise Comet: Real–Time, Real–Time, or Real–Time Web 2.0?
Nexaweb
Now Playing: Desktop Apps in the Browser!
Sun
jMaki as an AJAX Mashup Framework
POWER PANELS:
The Business Value
of RIAs
What Lies Beyond AJAX?
KEYNOTES:
Douglas Crockford
Can We Fix the Web?
Anthony Franco
2008: The Year of the RIA
Click For 2007 Event Webcasts
SYS-CON.TV
TOP LINKS YOU MUST CLICK ON


Using the Eclipse Data Tools Platform with PowerBuilder and SQL Anywhere
Now a top-level project at eclipse.org

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.
4.  Right-click the connection profile you just created, click 'Connect' (see Figure 13)

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
First we must open the SQL Results view. This view is a window view that will be populated with data in table format when a query is executed.
1.  Click 'Window' | 'Show View' | 'Other'
2.  Choose 'SQL Development' | 'SQL Results' (see Figure 15)
3.  Click 'OK'

Next we must open a new SQL File, which we can use to create and execute SQL commands.
4.  Click 'File' | 'New' | 'Other'
5.  Choose 'SQL Development' | 'SQL File'
6.  Click 'Next' (see Figure 16)

We must now specify what project this SQL File will belong to and what connection profile it will be executed against.
7.  Fill out the form as show below; be sure to choose the right connection profile and database name. Create a new general project if necessary (see Figure 17).
8.  Click 'Finish'
9.  Enter any SQL statement into your new SQL File
  •   For example - "SELECT * FROM Customers"
10.  Save this file, right-click anywhere in the SQL File window, and choose 'Execute All' (see Figure 18)

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
In this tutorial, we learned how to:
  •   Define a driver template
  •   Create a connection profile
  •   Connect to a SQL Anywhere 10 database
  •   Run SQL statements against a SQL Anywhere 10 database from within the Eclipse IDE

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.

About José Ramos
José Ramos is a product manager for Sybase iAnywhere and is responsible for the direction and life cycle planning of Sybase iAnywhere products. With more than seven years of experience, he also plays an active role in customer demonstrations and education to ensure the continued success of SQL Anywhere, the industry-leading database management and data movement technology built for frontline environments. José holds a Bachelor of Mathematics in Computer Science from the University of Waterloo in Ontario, Canada.

YOUR FEEDBACK
Fabio wrote: I've made a connection to a odbc driver and it work fine, I can write my sql statement and execute it whit no problem. Anyway I don't see any tables or stored procedure under Data Source Explorer for any of the connection I've create whit ping successfully. Neither whit jdbc:odbc and other jdbc drive such as Sql Jdbc that work fine tto
LATEST ECLIPSE STORIES . . .
Genuitec announced their expansion into “Strategic Member” status for the Eclipse Foundation. This highest level of Foundation membership ensures both financial and technological backing of the Eclipse platform, as well as increased influence on the platform's evolution through boa...
Furthering its dedication to providing Java developers productivity with choice, Oracle announced the Oracle Enterprise Pack for Eclipse, a new component of Oracle Fusion Middleware. This release marks the first free Eclipse 3.4 environment to support Oracle WebLogic Server 10g Release...
Aptana announced the acquisition of Pydev. The combination of Pydev with Aptana Studio, which is approaching 2.3 million downloads, will bring Aptana's excellence in AJAX development ease to the Python community and bring Python support to Aptana's product lines. The move further reinf...
Two of the biggest launches in Rich Internet Application history took place in 2007/2008 when Adobe launched AIR 1.0 in February '08 and Microsoft launched Silverlight (September '07). At the 6th International AJAXWorld RIA Conference & Expo in October SYS-CON Events is delighted to be...
Red Hat CTO Brian Stevens, Citrix CTO Simon Crosby, Egenera CTO Pete Manca, Allen Stewart, Group Manager, Windows Virtualization at Microsoft, and Brian Duckering, Sr. Director of Products and Alliances at Symantec were the top industry executives who joined Jeremy Geelan in the 4th Fl...
Genuitec announced the availability of MyEclipse Enterprise Workbench 7.0 milestone 1. This milestone release delivers advanced AJAX tooling for Java EE and full Application Lifecycle Management (ALM) capabilities for Eclipse 3.4 Ganymede, among other enhancements.
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS
SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021


SYS-CON FEATURED WHITEPAPERS

ADS BY GOOGLE