31
A Primer to Sybase IQ Development Using Sybase WorkSpace With a focus on migrating from ASE to IQ Mike Crocker ([email protected]) Hui (Spark) Wan ([email protected]

A Primer To Sybase Iq Development July 13

Embed Size (px)

DESCRIPTION

This is my session with Mike Crocker n Sybase Techwave 2007, Las vegas

Citation preview

Page 1: A Primer To Sybase Iq Development July 13

A Primer to Sybase IQ Development Using Sybase WorkSpaceWith a focus on migrating from ASE to IQ

Mike Crocker ([email protected])Hui (Spark) Wan ([email protected]

Hung Hsi
DMP does not really support ASE to IQ migration. Should remove all 'migrate' wordings.
Page 2: A Primer To Sybase Iq Development July 13

Table of Contents

• WorkSpace Introduction

• Enterprise Modeling and IQ

• Database Development and IQ– Yes, these features apply to Sybase IQ

• Sybase IQ Specific Scenario– Migrating An ASE Database to IQ

• Migrate the Schema

• Query Testing and Index Selection

• Migrate the Stored Procedures

• Where To Get More Info

Page 3: A Primer To Sybase Iq Development July 13

Disclaimer

The development, release, and timing on any features and functionality described for our products remains at our sole discretion. The information in this presentation is intended to outline our general product direction and should not be relied on in making a purchasing decision.

Page 4: A Primer To Sybase Iq Development July 13

WorkSpace Introduction

Page 5: A Primer To Sybase Iq Development July 13

Enterprise Modeling

Database Development

The Future of Development

InformationUnwired

People UnwiredInformation Managed

Services Assembly & Orchestration

Web App Development

Mobilization

Sybase WorkSpace

Page 6: A Primer To Sybase Iq Development July 13

Introducing Sybase WorkSpace

From idea to deployment in a unified environment

Support for team development, including business analysts, architects and programmers

Integrated model-driven design and visual development

Modular packaging and pricing for truly customized environment

A unified application development environment for Sybase servers

Page 7: A Primer To Sybase Iq Development July 13

How Sybase WorkSpace Works

• Nine major components– Enterprise Modeling– Database Development– Services Design and Development– Process Orchestration– Web Application Development– Mobile Development– Data Federation Development– Sybase Search– Business Activity Monitoring

• Organized as a set of Perspectives– Each Perspective with its own set of views

• Built in the Eclipse framework– Reduces learning curve for developers– Access to thousands of open source plug-ins

Page 8: A Primer To Sybase Iq Development July 13

Sybase WorkSpace Architecture

Page 9: A Primer To Sybase Iq Development July 13

Enterprise Modeling and IQSubtitle will go here

Page 10: A Primer To Sybase Iq Development July 13

Enterprise Modeling Perspective – Database Modeling Features

Conceptual Data Modeling• Represents the overall logical structure of a database• Describes the conceptual relationships of different types of

information• Is independent of a particular database management system (DBMS)• Primarily represents entities and their relationships• Is free from the aspects of physical implementation• Can be transferred to the Physical Data Model (PDM) using a simple

generation procedure

Page 11: A Primer To Sybase Iq Development July 13

Enterprise Modeling Perspective – Database Modeling Features

Physical Data Modeling• Represents the overall physical structure of a database• Describes the physical relationships between different types of

objects• Is dependent on a particular database management system (DBMS)• Describes tables, their references, domains, business rules, defaults,

views, procedures• When converted to a Conceptual Data Model, only entities and their

relationships and their related objects are converted– Procedures, views are not converted.

• Can be generated using existing CDM or reverse engineering a database

• IQ Join Indexes are supported

Page 12: A Primer To Sybase Iq Development July 13

Enterprise Modeling Perspective – Information Liquidity Modeling Features

Information Liquidity Model• Build an Information Liquidity Model (ILM)• Model represents your replication environment• Reverse engineer an existing replication environment• Generate Replication Server .SQL files to build replication

environment• Customize the ILM to suit physical and performance considerations• Use to model and create a staging database for IQ

Page 13: A Primer To Sybase Iq Development July 13

Enterprise Modeling Perspective – Relevance to Sybase IQ

• Use the PDM to reverse engineer your ASE database– Model can be used to create IQ table creation scripts– What about Stored procedure scripts

• Use ILM to setup setup a staging database for IQ– Will be used to move data into IQ from ASE

Page 14: A Primer To Sybase Iq Development July 13

Database Development and IQYes, these features apply to Sybase IQ

Page 15: A Primer To Sybase Iq Development July 13

Productivity FeaturesIn WorkSpace

Productivity Features

In WorkSpace 1.7

Page 16: A Primer To Sybase Iq Development July 13

Schema Development

• Full schema objects support– Visual development and debugging support for Stored

procedures, user-defined functions, and events– Creation and modification of tables, keys, and indexes– Proxy Table awareness

• Database Exploring– Database navigation/exploring– Tree-based listing of database schema objects– Table data viewing and editing– Server import from SQL.INI file and LDAP server

Page 17: A Primer To Sybase Iq Development July 13

SQL Development

• SQL Editor– Inline Syntax validation– Content assist (auto completion)– Powerful Templates

• Lots of Built-in templates• Parameterized for repeatable use• Easy to add powerful new user-defined templates• Import/export to share with team members

Page 18: A Primer To Sybase Iq Development July 13

SQL Development (Cont.)

• Visual SQL Builder– Build large queries with ease

– Supports cross-database joins, nested queries, variables, etc.

• Execution and Results Handling– Cancel execution, run in background, etc

– Save results in multiple formats (XML, HTML, CSV)

– Execution History

• Scripting– Full SQL Editor capabilities

– SQL file execution support

Page 19: A Primer To Sybase Iq Development July 13

SQL Debugging

– Non-intrusive• No source code change required

– Supports Stored procedures, user-defined functions, events

– Full debugging control• Add/Remove, Enable/Disable Breakpoints• Step In/Over/Out, Resume, Continue, Terminate• View and set local variables

– Multi-session, Multi-object debugging– External client/application debugging– Referenced Tables View and Table Data Editor

• Enables the viewing and editing of tables while debugging

Page 20: A Primer To Sybase Iq Development July 13

New Features in Workspace 2.0

New Features

In WorkSpace 2.0

Page 21: A Primer To Sybase Iq Development July 13

New Features:Schema Development

• Powerful new Multi-page Schema Editors and Wizards– Database Object Schema definition support

• Tables, Indexes, Primary Keys, Foreign Keys, Constraints• Rules, Defaults• User-defined Data Types• Views• Stored Procedures

– Eliminate complexity of creating and using objects – Integrated and Easy to use– Support Permissions handling

• Grant/Revoke for users/groups/roles

Page 22: A Primer To Sybase Iq Development July 13

New Features:SQL Development

• Scripting– Multi-file execution support

• SQL Scrapbook – Supports quick ‘isql like’ ad-hoc command execution– Quick execution on different server

• SQL Editor Enhancements– Intelligent Templates

• Table schema awareness for writing DML statements– Quick Open (via F3 Hot Key) for database object definition in Editor

Page 23: A Primer To Sybase Iq Development July 13

New Features:DDL Generation

• DDL Generation support for – Database, Tables, Indexes, Keys, Constraints, UDTs, Views,

Stored Procedures, Events, and User defined functions• Highly Customizable

– Fully flexible and granular generation as per object granularity in database server

– Single and Multi-file scripts generation• Captures Permissions• Includes DROP statements• Ready for quick and easy version control

Page 24: A Primer To Sybase Iq Development July 13

IQ New Features

• IQ Global Temporary Tables– Creation and manipulation– Debug time support – Referenced Tables view

• IQ Proxy Objects– Proxy tables – Awareness in appropriate tools

• SQL Editor, Visual SQL Dialog, and Referenced Tables View

• IQ HTML Query Plan Generation

Page 25: A Primer To Sybase Iq Development July 13

New Features:Other Key Enhancements (Cont).

• Basic Data Migration – Quick dataset creation for preserving and moving between

servers– Based on SQL INSERT

• Data Manipulation– Support data manipulation in Table Data Editor– Ability to save DML used to alter data

Page 26: A Primer To Sybase Iq Development July 13

Sybase IQ Specific ScenarioMigrating An ASE Database to IQ

Page 27: A Primer To Sybase Iq Development July 13

Demo

Use-case #1 - Modeling– ASE Reverse Engineering– Creation of table creation scripts

Use-case #2 – Tables and Indexes– Create table, index and index advisor

Use-case #3 – Stored Procedures– Write a new IQ stored procedure, execute and debug it– Show Compatibility Check for ASE stored procedures

Page 28: A Primer To Sybase Iq Development July 13

Where To Get More Info

Page 29: A Primer To Sybase Iq Development July 13

Where To Get More Information

• Learn more about Sybase IQ:– http://www.sybase.com/products/datawarehousing/sybaseiq

• Learn more about Sybase WorkSpace:– http://www.sybase.com/products/development/workspace

• Learn more about PowerDesigner:– http://www.sybase.com/products/modelingmetadata/powerdesigner

• Download the Sybase WorkSpace evaluation and give it a try:– http://eshop.sybase.com/eshop/try_buy

• Watch the WorkSpace QuickStart Videos:– http://www.sybase.com/workspacevideos

• Checkout the WorkSpace White Papers:– http://www.sybase.com/detail_list?id=9814

Page 30: A Primer To Sybase Iq Development July 13

Q&ASubtitle will go here

Page 31: A Primer To Sybase Iq Development July 13

Thank You!!Subtitle will go here