Upload
sparkwan
View
2.362
Download
0
Embed Size (px)
DESCRIPTION
This is my session with Mike Crocker n Sybase Techwave 2007, Las vegas
Citation preview
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]
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
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.
WorkSpace Introduction
Enterprise Modeling
Database Development
The Future of Development
InformationUnwired
People UnwiredInformation Managed
Services Assembly & Orchestration
Web App Development
Mobilization
Sybase WorkSpace
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
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
Sybase WorkSpace Architecture
Enterprise Modeling and IQSubtitle will go here
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
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
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
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
Database Development and IQYes, these features apply to Sybase IQ
Productivity FeaturesIn WorkSpace
Productivity Features
In WorkSpace 1.7
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
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
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
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
New Features in Workspace 2.0
New Features
In WorkSpace 2.0
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
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
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
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
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
Sybase IQ Specific ScenarioMigrating An ASE Database to IQ
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
Where To Get More Info
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
Q&ASubtitle will go here
Thank You!!Subtitle will go here