YOUR FEEDBACK
AJAX: XMLHttpRequest Vs. iFrames
Kenneth wrote: You forgot to mention a disadvantage of xmlHttpRequest that i...
AJAXWorld RIA Conference
$300 Savings Expire July 25
Register Today and SAVE!


2007 West
GOLD SPONSORS:
Active Endpoints
Your SOA Needs BPEL for Orchestration
BEA
Virtualized SOA: Adaptive Infrastructure for Demanding Applications
Nexaweb
Overcoming Bandwidth Challenges with Nexaweb
TIBCO
What is Service Virtualization?
SILVER SPONSORS:
WSO2
Using Web Services Technologies and FOSS Solutions
Click For 2007 East
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

Digg This!

Page 2 of 3   « previous page   next page »

To learn more about DTP, resources can be found at http://wiki.eclipse.org/index.php/Data_Tools_Platform_Project.

SQL Anywhere is a suite of databases and data exchange technologies that pack a lot of power and performance into a small footprint. The SQL Anywhere Server database supports 32-bit and 64-bit servers on all major platforms. Many ISVs embed the SQL Anywhere Server database into their applications because not only can it scale from client/server environments with hundreds, even thousands, of users storing hundreds of gigabytes of data, but it can also be easily hidden in an application that runs on desktop and laptop computers requiring little or no IT support. You can learn more about SQL Anywhere by visiting www.ianywhere.com/sqlanywhere.

This tutorial shows you how to install the Data Tools Platform Eclipse plug-in and how to use some of its features against a SQL Anywhere 10 database.

Requirements
  •   SQL Anywhere 10.0.1 or higher
  •   DTP 1.5M6 End-user or later
  •   Depending on what version of DTP you download, you will need specific versions of:
    -   Eclipse SDK. At the time this writing, Eclipse 3.2.2 SDK was required.
    -   EMF runtimes (EMF + SDO). At the time of this writing, EMF 2.2.2 (EMF +SDO) was required.
    -   GEF runtimes. At the time of this writing, GEF 3.2.2 was required.
  •   JRE 1.5 or higher
  •   Sybase jConnect 6.05 - available at www.sybase.com/products/allproductsa-z/softwaredeveloperkit/jconnect.

Before You Begin Downloading the Data Tools Platform
The first thing you need to do is download the DTP plug-in and include it in your Eclipse folder. You may also have to download the EMF and GEF plug-ins if you don't already have them. When you download and extract all the files, you have to merge them into your current Eclipse folder, where you typically launch the application. Here's a link where you can download DTP; it also has links to all of its dependencies (EMF and GEF): www.eclipse.org/datatools/down-loads.html.

Starting the Sample Database
This tutorial uses the sample database provided with the installation of SQL Anywhere. It's called demo.db and you can find it in the samples folder of your SQL Anywhere installation. If you're running on Mac OS X, Linux, or Unix, you'll need to configure the samples by sourcing the file 'samples/samples_config32.sh' from your SQLAnywhere 10 installation folder. If you're running on Windows, the samples folder is defined in the %SQLANYSAMP10% environment variable.

Stop all the databases running on your machine, find this file, change to its directory, and run the following command in a command prompt: dbeng10 demo.db.

This will start a database engine called 'demo', listening on port 2638 with one database called 'demo'.

Creating a Driver Template and Connection Profile
In this section we'll cover how to define a driver template and create a connection profile to be used to connect to our sample database.
1.  In Eclipse, click 'File' | 'New' | 'Other' (see Figure 1)
2.  Choose 'Connection Profile' (see Figure 2)
3.  Click Next. Specify 'Sybase ASA' as the connection profile type (see Figure 3) (Note: The SQL Anywhere Server database was called ASA in previous versions of the product.)
4.  Click Next. Give the connection profile a name, type 'sqlanywhere10' (see Figure 4)
5.  Click Next. Here we have to choose a driver, but we have no driver templates defined. Click the browse button circled in the image below (see Figure 5)
6.  Click 'Add' to add a new driver template (see Figure 6)
7.  Choose the 'Sybase JDBC Driver for Sybase ASA 9.x (see Figure 7)
    -   Even though we're connecting to a SQL Anywhere 10 database, we can use this driver template and change the appropriate settings
    -   Change the driver name to 'Sybase JDBC Driver for SQL Anywhere 10.x'
    -   Make sure the 'Edit New Driver Definition Immediately' box is checked
8.  After clicking 'OK,' press the 'Add Jar/Zip' button to browse for the jConnect 6.05 JAR file: jconn3.jar
9.  Set the driver properties at the bottom of the screen as show in Figure 8
10.  Click 'OK'
11.  Now that we've defined a driver template, we can return to this screen, choose our new driver, and click 'OK' to continue (see Figure 9)
12.  Set the connection profile settings as shown below and click 'Finish' (see Figure 10)

Now that we've created a connection profile, we can use the Data Source Explorer to connect to our sample database and view database objects in the object tree.

Connecting to SQL Anywhere 10
To connect to our SQL Anywhere sample database, we need to open the Data Source Explorer view.
1.  Click 'Window' | 'Show View' | 'Other' (see Figure 11)
2.  Choose 'Connectivity' | 'Data Source Explorer'
3.  Click 'OK' (see Figure 12)

The Data Source Explorer initializes in your Eclipse environment. You can click and drag the title to dock it wherever you like.


Page 2 of 3   « previous page   next page »

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.

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
read & respond »
PBDJ LATEST STORIES . . .
Adobe's Kevin Lynch and Microsoft's Scott Guthrie to Keynote AJAX World RIA Conference & Expo
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
PowerBuilder and EAServer: Uniting the .NET and J2EE Communities
In PowerBuilder 11.2, .NET meets J2EE head-on with the capability to deploy .NET Windows Forms and Web Forms applications (as well as assemblies and Web Services) that access Enterprise JavaBeans (EJBs) in Sybase's own EAServer. As you'll see over the course of this article, integratin
HarPB Tool Review
HarPB is a specialized utility for checking PowerBuilder source objects in and out of AllFusion Harvest. It handles the special requirements of checking objects out to PowerBuilder Libraries (PBLs) and checking objects in from PBLs. These operations are non-standard to most source cont
PowerBuilder Editorial: The State of the State
Back in 2002, Sybase announced their four-phase approach toward adding .NET support to PowerBuilder. Phase 1 was the implementation of web services in PB9 and Phase 2 was the release of DataWindow.NET, which was packaged with PB 10. Phases 3 and 4 were the more significant phases. In P
PowerBuilder History - When Did Sybase Develop PB and How Did It Evolve?
I have been asked many times by various clients, students, and the IT curious about PowerBuilder: When did Sybase develop the product and how did it evolve? I keep telling this story and answering e-mails on the subject. I am now to the point where I have decided that I should have PBD
PowerBuilder 11's .NET Interoperability
PowerBuilder 11 deploys entire applications as .NET Windows Form or Web Form applications and deploys individual components as .NET Assemblies and as .NET Web Services. Version 11 consumes resources of the default .NET framework as well as resources of custom developer-defined .NET res
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
Sybase Reports Record Second Quarter Results, Driven by 15% Revenue Growth
Sybase, Inc. (NYSE:SY), the largest enterprise software and services company exclusively