Using the Eclipse Data Tools Platform with SQL Anywhere 10. A whitepaper from Sybase ianywhere



Similar documents
IBM DB2 XML support. How to Configure the IBM DB2 Support in oxygen

AWS Schema Conversion Tool. User Guide Version 1.0

AWS Schema Conversion Tool. User Guide Version 1.0

MobiLink Synchronization with Microsoft SQL Server and Adaptive Server Anywhere in 30 Minutes

Getting Started using the SQuirreL SQL Client

Installing the Android SDK

Generating Open For Business Reports with the BIRT RCP Designer

Tool Tip. SyAM Management Utilities and Non-Admin Domain Users

Tutorial: BlackBerry Object API Application Development. Sybase Unwired Platform 2.2 SP04

How To Connect A Java To A Microsoft Database To An Ibm.Com Database On A Microsq Server On A Blackberry (Windows) Computer (Windows 2000) On A Powerpoint (Windows 5) On An Ubio.Com

Two new DB2 Web Query options expand Microsoft integration As printed in the September 2009 edition of the IBM Systems Magazine

Tutorial: Android Object API Application Development. SAP Mobile Platform 2.3 SP02

Change Manager 5.0 Installation Guide

Introduction: The Xcode templates are not available in Cordova or above, so we'll use the previous version, for this recipe.

Embarcadero DB Change Manager 6.0 and DB Change Manager XE2

Deploying BitDefender Client Security and BitDefender Windows Server Solutions

USING STUFFIT DELUXE THE STUFFIT START PAGE CREATING ARCHIVES (COMPRESSED FILES)

Set Up Hortonworks Hadoop with SQL Anywhere

Using Microsoft Windows Authentication for Microsoft SQL Server Connections in Data Archive

IBM TCP/IP Network Port Monitor

IBM WebSphere Application Server V8.5 lab Basic Liberty profile administration using the job manager

This means that any user from the testing domain can now logon to Cognos 8 (and therefore Controller 8 etc.).

Customer Tips. Configuring Color Access on the WorkCentre 7328/7335/7345 using Windows Active Directory. for the user. Overview

SourceAnywhere Service Configurator can be launched from Start -> All Programs -> Dynamsoft SourceAnywhere Server.

LPR for Windows 95/98/Me/2000/XP TCP/IP Printing User s Guide. Rev. 03 (November, 2001)

Using SAP Crystal Reports with SAP Sybase SQL Anywhere

The cloud server setup program installs the cloud server application, Apache Tomcat, Java Runtime Environment, and PostgreSQL.

Epidefender Studio Installation notice

Eclipse installation, configuration and operation

Configuration Guide. Remote Backups How-To Guide. Overview

Informatics for Integrating Biology & the Bedside. i2b2 Workbench Developer s Guide. Document Version: 1.0 i2b2 Software Release: 1.3.

Tutorial: Mobile Business Object Development. SAP Mobile Platform 2.3 SP02

IBM TRIRIGA Anywhere Version 10 Release 4. Installing a development environment

Migrating MSDE to Microsoft SQL 2008 R2 Express

Embarcadero Rapid SQL Developer 2.0 User Guide

DP-313 Wireless Print Server

LPR for Windows 95 TCP/IP Printing User s Guide

IBM Campaign Version-independent Integration with IBM Engage Version 1 Release 3 April 8, Integration Guide IBM

Querying Databases Using the DB Query and JDBC Query Nodes

Installation Guide. . All right reserved. For more information about Specops Deploy and other Specops products, visit

Backup and Recovery. What Backup, Recovery, and Disaster Recovery Mean to Your SQL Anywhere Databases

CLC Bioinformatics Database

Installing (1.8.7) 9/2/ Installing jgrasp

Deploying BitDefender Client Security and BitDefender Windows Server Solutions

Oracle Fusion Middleware

WA1781 WebSphere Process Server v6.2 Administration. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc.

How To Run A Hello World On Android (Jdk) On A Microsoft Ds.Io (Windows) Or Android Or Android On A Pc Or Android 4 (

TUTORIAL ECLIPSE CLASSIC VERSION: ON SETTING UP OPENERP 6.1 SOURCE CODE UNDER WINDOWS PLATFORM. by Pir Khurram Rashdi

ACTIVE DIRECTORY DEPLOYMENT

Setting Up Your Android Development Environment. For Mac OS X (10.6.8) v1.0. By GoNorthWest. 3 April 2012

Instructions for Configuring a SAS Metadata Server for Use with JMP Clinical

PaperClip Audit System Installation Guide

1. Installation Overview

OpenEmbeDD basic demo

How to install and use the File Sharing Outlook Plugin

Having Fun with QNAP and your Home Automation

Fahim Uddin 1. Java SDK

Tutorial: Mobile Business Object Development. Sybase Unwired Platform 2.2 SP02

SARANGSoft WinBackup Business v2.5 Client Installation Guide

WA1791 Designing and Developing Secure Web Services. Classroom Setup Guide. Web Age Solutions Inc. Web Age Solutions Inc. 1

Getting Started with Android Development

This manual provides information and instructions for Mac SharePoint Users at Fermilab. Using Sharepoint from a Mac: Terminal Server Instructions

MY WORLD GIS. Installation Instructions

Tutorial: Mobile Business Object Development. SAP Mobile Platform 2.3

2012 Teklynx Newco SAS, All rights reserved.

Sage HRMS 2014 Sage Employee Self Service Tech Installation Guide for Windows 2003, 2008, and October 2013

EMC Documentum Composer

Crystal Reports for Eclipse

IBM Operational Decision Manager Version 8 Release 5. Getting Started with Business Rules

XenClient Enterprise Synchronizer Installation Guide

Apple Mail Setup Guide (POP3)

PRODUCT WHITE PAPER LABEL ARCHIVE. Adding and Configuring Active Directory Users in LABEL ARCHIVE

INSTALLATION DIRECTIONS

Download and Installation Instructions. Android SDK and Android Development Tools (ADT)

Installing Cobra 4.7

Embarcadero DB Change Manager

About this Release. Introduction. Prerequisites. Installation. Using the Web SDK Packager

Viewing and Troubleshooting Perfmon Logs

Intelligent Event Processer (IEP) Tutorial Detection of Insider Stock Trading

Tutorial: setting up a web application

StreamServe Persuasion SP4

Network. Overview. LabTech

Business Intelligence Tutorial

Lab 0 (Setting up your Development Environment) Week 1

Download and Installation Instructions. Android SDK and Android Development Tools (ADT) Microsoft Windows

Quest ChangeAuditor 5.1 FOR ACTIVE DIRECTORY. User Guide

FileMaker 12. ODBC and JDBC Guide

SuperOffice AS. CRM Online. Installing the Citrix Online Web plug-in

RETRIEVING NMR DATA JB Stothers NMR Facility Materials Science Addition 0216 Department of Chemistry Western University

TSM for Windows Installation Instructions: Download the latest TSM Client Using the following link:

Personal Token Software Installation Guide

Setting up Sudoku example on Android Studio

Plug-In for Informatica Guide

Download and Installation Instructions. Android SDK and Android Development Tools (ADT) Microsoft Windows

Kepware Technologies KEPServerEX Client Connectivity Guide for GE's Proficy ifix

Microsoft Access Rollup Procedure for Microsoft Office Click on Blank Database and name it something appropriate.

GO MARKETS MT4 FOR MAC

PTC Integrity Eclipse and IBM Rational Development Platform Guide

WA2102 Web Application Programming with Java EE 6 - WebSphere RAD 8.5. Classroom Setup Guide. Web Age Solutions Inc. Web Age Solutions Inc.

Transcription:

Using the Eclipse Data Tools Platform with SQL Anywhere 10 A whitepaper from Sybase ianywhere

CONTENTS Introduction 3 Requirements 3 Before you begin 3 Downloading the Data Tools Platform 3 Starting the sample database 3 Creating a driver template and connection profile 4 Connecting to SQL Anywhere 10 7 Querying the SQL Anywhere database 8 Summary 11

INTRODUCTION The Eclipse Data Tools Platform (DTP) project is a new top-level project at eclipse.org. Originally proposed by Sybase in February 2005, DTP has attracted strong community support and is currently managed by a committee comprised of Sybase, IBM, and Actuate. It is an open-source initiative that is designed to provide solutions in the data framework and tooling domains. Examples of what the DTP plug-in allows you to do from within Eclipse include: Connect to a database (or multiple databases) View a database object tree (tables, views, stored procedures, and so on) Generate data definition language (DDL) from database objects Execute DDL commands against a database Execute SQL queries against a database View query results in table format To learn more about DTP, visit http://wiki.eclipse.org/index.php/data_tools_platform_project. 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 DTP 1.5M6 End-user or later Depending on what version of DTP you download, you need a specific version of: Eclipse SDK (at the time of writing, Eclipse 3.2.2 SDK is required) EMF runtimes (EMF + SDO) (at the time of writing, EMF 2.2.2 (EMF + SDO) is required) GEF runtimes (at the time of writing, GEF 3.2.2 is required) JRE 1.5 or later Sybase jconnect 6.05 (available at http://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 must merge them into your current Eclipse folder, where you typically launch the application from. You can download DTP from the following location, which also has links to all of its dependencies (EMF and GEF): http://www.eclipse.org/datatools/downloads.html. STARTING THE SAMPLE DATABASE This tutorial uses the SQL Anywhere sample database provided during installation. It is called demo.db and you can find it in the samples directory of your installation. If you are running on Mac OS X, Linux, or Unix, you must configure the samples by sourcing the file samples/samples_config32.sh from your SQL Anywhere 10 installation folder. If you are running on Windows, the samples directory is defined by the %SQLANYSAMP10% environment variable. Stop all databases running on your computer, find the sample database file and change to its directory, and then run the following command from a command prompt: dbeng10 demo.db

This starts a database server called demo, listening on port 2638 (if it is not already busy) with one database called demo. CREATING A DRIVER TEMPLATE AND CONNECTION PROFILE This section describes how to define a driver template and create a connection profile that can be used to connect to the sample database. 1. From the Eclipse File menu, choose New> Other. 2. Select Connection Profile. 3. Click Next. Select Sybase ASA as the connection profile type. 4. Click Next. Name the connection profile sqlanywhere10. 5. Click Next. At this step you have to choose a driver, but you do not have any driver templates defined. Click Browse. 6. Click Add to add a new driver template. www.ianywhere.com 4

7. Select Sybase JDBC Driver for Sybase ASA 9.x. Even though you are connecting to a SQL Anywhere 10 database, you can use this driver template and configure it to use the appropriate settings. Change the driver name to Sybase JDBC Driver for SQL Anywhere 10.x. Make sure the Edit New Driver Definition Immediately option is selected. 8. Click OK, and then click 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 the following image: www.ianywhere.com 5

10. Click OK. 11. Now that the driver template is defined, select the new driver, and then click OK to continue. 12. Set the connection profile settings as shown below, and then click Finish. www.ianywhere.com 6

Now that you have created a connection profile, you can use the Data Source Explorer to connect to the sample database, and view database objects in the object tree. CONNECTING TO SQL ANYWHERE 10 To connect to the SQL Anywhere sample database, you must open the Data Source Explorer view. 1. From the Window menu, choose Show View > Other. 2. Select Connectivity > Data Source Explorer, and then click OK. The Data Source Explorer initializes in your Eclipse environment. You can click and drag the title to dock it wherever you like. If you expand the Databases folder in the view, you should see the connection profile you just created, and any other connection profiles you have created. 3. Right-click the connection profile you just created, and then click Connect. www.ianywhere.com 7

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. The Data Source Explorer offers a great deal of functionality in itself. Right-clicking any object allows you to generate DDL for that object. In the image above, generating DDL for the object demo (at the top of the tree) generates DDL for the entire database, whereas generating DDL for the table Contacts just gives 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. As well, right-clicking a table or view gives you a Data sub-menu from which you can edit the information in that table or view, or sample its contents. QUERYING THE SQL ANYWHERE DATABASE Before you can query the database, you must open the SQL Results view. This view is a window view that is populated with data in table format when a query is executed. 1. From the Window menu, choose Show View > Other. 2. Choose SQL Development > SQL Results. 3. Click OK. www.ianywhere.com 8

Next, you must open a new SQL File, which you can use to create and execute SQL commands. 4. Choose File > New > Other. 5. Choose SQL Development > SQL File. 6. Click Next. Now you must 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, and be sure to choose the right connection profile and database name. Create a new general project if necessary. www.ianywhere.com 9

8. Click Finish. 9. Enter any SQL statement into your new SQL File. For example, SELECT * FROM Customers. 10. Save the file, right-click anywhere in the SQL File window, and then choose Execute All. If your SQL statement executes successfully, you should see results of the statement in the Results view that you opened earlier. If the statement was a query, the Results view displays the returned records. If it was not a query, you receive notification of the statement's success, and how many rows were affected. Query results should look like the image below. www.ianywhere.com 10

This completes the tutorial. You can now close Eclipse and shut down the demo database you started earlier. SUMMARY In this tutorial, you learned 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 you walked through in this tutorial are just an introduction to some of the features available in the DTP framework and tools. Hopefully it has given you enough familiarity to continue exploring on your own. Since DTP is an open-source project, they depend on involvement from the community to a large extent. You should feel free to contribute bug reports, feature requests, and general comments to the DTP project team. Their project home page is located at http://www.eclipse.org/datatools. COPYRIGHT 2007 IANYWHERE SOLUTIONS, INC. ALL RIGHTS RESERVED. SYBASE, AFARIA, SQL ANYWHERE, ADAPTIVE SERVER ANYWHERE, MOBILINK, ULTRALITE, AND M-BUSINESS ANYWHERE ARE TRADEMARKS OF SYBASE, INC. ALL OTHER TRADEMARKS ARE PROPERTY OF THEIR RESPECTIVE OWNERS. www.ianywhere.com 11