YOUR FEEDBACK
Working at Google vs. Working at Microsoft
Ray the Barbarian wrote: I worked at Microsoft Research, and I had an in p...
SOA World Conference
Virtualization Conference
$50 Savings Expire June 24, 2008... – Register Today!


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
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

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 »
LATEST ECLIPSE 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
Instantiations Rolls Out Product Updates in Conjunction with Eclipse 3.4 and Ganymede
Instantiations announced that its entire Eclipse-based product line has been updated to coincide with the annual Eclipse open source release, Ganymede. Included with the roll-out are additions in the area of security to its CodePro AnalytiX comprehensive code quality product, bringing
Quest Software's JProbe Now Available as Eclipse Plug-In
Quest Software announced the latest release of its Java profiler, JProbe 8.0, which is now offered as a plug-in to the Eclipse Java Integrated Development Environment (IDE). The release of this capability aligns with the increased adoption of the open source development. Launching JPro
Migrate to Eclipse 3.4 Ganymede, Manage Configurations with Pulse
Genuitec announced the general availability of Pulse 2.2, a way to obtain, manage and configure Eclipse Ganymede and plugins. Genuitec is pleased to offer this product to Pulse users on the day of the Ganymede release. As of today, Pulse 2.2 will support full Ganymede tool stacks.
Protecode Announces Governance and Intellectual Property Management Software
Protecode announced the general availability of its software development tool for governance and Intellectual Property (IP) management. The latest release enables commercial software developers and open source creators to accelerate managed adoption of open source code in a simple, pai
AccuRev and Rally Software Partner to Scale Agile Software Development Best Practices
AccuRev and Rally announced a technology partnership that will integrate AccuRev software change and configuration management (SCCM) with Rally's Agile lifecycle management solutions. The combined solution will provide a platform to manage multiple Agile processes and ongoing customer
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