YOUR FEEDBACK
Gregor Rosenauer wrote: well, not what's your take on this? Did I miss a second page of this article or...
AJAXWorld RIA Conference
Early Bird Savings Expire Friday 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
POWERBUILDER 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
PBDJ LATEST STORIES . . .
Join Scott Guthrie as he discusses Microsoft’s commitment to web standards development, Rich Internet Applications and how Microsoft is contributing to help move the web forward. Join Adobe’s Kevin Lynch as he demonstrates how Flash and HTML come together to make the most engaging,...
Particularly in a means of moving PowerBuilder applications to the web. What I’m looking for doesn’t require a server license or the installation of unmanaged code to the web server, and works well across different browsers (not just Internet Explorer). The WPF DataWindow will help...
"The rise of Enterprise Architecture is proof that organizations need to manage the impact of changes in competition, technology and regulations across their enterprise," said Dan Lahl, director of Intelligent Enterprise for Sybase. "PowerDesigner 15's unique Link and Synch technology ...
With PowerBuilder 11 Sybase gave developers what we have long hoped for – the possibility of taking an application created in a client/server architecture and turning it into a Web application, almost without having to move the code; and it's better if you don't use a server applicat...
Like any standard .NET application, the PowerBuilder .NET application follows the common language runtime rules regarding the permissions needed to do the operation the application aims to do. The code access security (CAS) provided by the .NET Framework is a security mechanism that a ...
PowerBuilder 11.0 supports deploying existing PowerBuilder client/server business applications as an ASP.NET WebForm application. This greatly improves developer productivity without having to learn a new development language and preserves PowerBuilder development skills. Although the ...
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
BREAKING POWERBUILDER / SYBASE NEWS

Organized by TAITRA (Taiwan External Trade Development Council) and Taiwan Electric...