a primer to sybase iq development july 13
DESCRIPTION
This is my session with Mike Crocker n Sybase Techwave 2007, Las vegasTRANSCRIPT
![Page 1: A Primer To Sybase Iq Development July 13](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/1.jpg)
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]
![Page 2: A Primer To Sybase Iq Development July 13](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/2.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/3.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/4.jpg)
WorkSpace Introduction
![Page 5: A Primer To Sybase Iq Development July 13](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/5.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/6.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/7.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/8.jpg)
Sybase WorkSpace Architecture
![Page 9: A Primer To Sybase Iq Development July 13](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/9.jpg)
Enterprise Modeling and IQSubtitle will go here
![Page 10: A Primer To Sybase Iq Development July 13](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/10.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/11.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/12.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/13.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/14.jpg)
Database Development and IQYes, these features apply to Sybase IQ
![Page 15: A Primer To Sybase Iq Development July 13](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/15.jpg)
Productivity FeaturesIn WorkSpace
Productivity Features
In WorkSpace 1.7
![Page 16: A Primer To Sybase Iq Development July 13](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/16.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/17.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/18.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/19.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/20.jpg)
New Features in Workspace 2.0
New Features
In WorkSpace 2.0
![Page 21: A Primer To Sybase Iq Development July 13](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/21.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/22.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/23.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/24.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/25.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/26.jpg)
Sybase IQ Specific ScenarioMigrating An ASE Database to IQ
![Page 27: A Primer To Sybase Iq Development July 13](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/27.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/28.jpg)
Where To Get More Info
![Page 29: A Primer To Sybase Iq Development July 13](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/29.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/30.jpg)
Q&ASubtitle will go here
![Page 31: A Primer To Sybase Iq Development July 13](https://reader035.vdocument.in/reader035/viewer/2022081413/54714192b4af9fbe0a8b4b71/html5/thumbnails/31.jpg)
Thank You!!Subtitle will go here