Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

A Primer To Sybase Iq Development July 13


Published on

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

  • Be the first to comment

  • Be the first to like this

A Primer To Sybase Iq Development July 13

  1. 1. A Primer to Sybase IQ Development Using Sybase WorkSpace With a focus on migrating from ASE to IQ Mike Crocker ( Hui (Spark) Wan (
  2. 2. Table of Contents <ul><ul><li>WorkSpace Introduction </li></ul></ul><ul><ul><li>Enterprise Modeling and IQ </li></ul></ul><ul><ul><li>Database Development and IQ </li></ul></ul><ul><ul><ul><li>Yes, these features apply to Sybase IQ </li></ul></ul></ul><ul><ul><li>Sybase IQ Specific Scenario </li></ul></ul><ul><ul><ul><li>Migrating An ASE Database to IQ </li></ul></ul></ul><ul><ul><ul><ul><li>Migrate the Schema </li></ul></ul></ul></ul><ul><ul><ul><ul><li>Query Testing and Index Selection </li></ul></ul></ul></ul><ul><ul><ul><ul><li>Migrate the Stored Procedures </li></ul></ul></ul></ul><ul><ul><li>Where To Get More Info </li></ul></ul>
  3. 3. Disclaimer <ul><li>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. </li></ul>
  4. 4. WorkSpace Introduction
  5. 5. The Future of Development Enterprise Modeling Database Development Information Unwired People Unwired Information Managed Services Oriented Architectures Services Assembly & Orchestration Web App Development Mobilization Sybase WorkSpace
  6. 6. Introducing Sybase WorkSpace <ul><ul><li>From idea to deployment in a unified environment </li></ul></ul><ul><ul><li>Support for team development, including business analysts, architects and programmers </li></ul></ul><ul><ul><li>Integrated model-driven design and visual development </li></ul></ul><ul><ul><li>Modular packaging and pricing for truly customized environment </li></ul></ul>A unified application development environment for Sybase servers
  7. 7. How Sybase WorkSpace Works <ul><ul><li>Nine major components </li></ul></ul><ul><ul><ul><li>Enterprise Modeling </li></ul></ul></ul><ul><ul><ul><li>Database Development </li></ul></ul></ul><ul><ul><ul><li>Services Design and Development </li></ul></ul></ul><ul><ul><ul><li>Process Orchestration </li></ul></ul></ul><ul><ul><ul><li>Web Application Development </li></ul></ul></ul><ul><ul><ul><li>Mobile Development </li></ul></ul></ul><ul><ul><ul><li>Data Federation Development </li></ul></ul></ul><ul><ul><ul><li>Sybase Search </li></ul></ul></ul><ul><ul><ul><li>Business Activity Monitoring </li></ul></ul></ul><ul><ul><li>Organized as a set of Perspectives </li></ul></ul><ul><ul><ul><li>Each Perspective with its own set of views </li></ul></ul></ul><ul><ul><li>Built in the Eclipse framework </li></ul></ul><ul><ul><ul><li>Reduces learning curve for developers </li></ul></ul></ul><ul><ul><ul><li>Access to thousands of open source plug-ins </li></ul></ul></ul>
  8. 8. Sybase WorkSpace Architecture
  9. 9. Enterprise Modeling and IQ Subtitle will go here
  10. 10. Enterprise Modeling Perspective – Database Modeling Features <ul><li>Conceptual Data Modeling </li></ul><ul><ul><li>Represents the overall logical structure of a database </li></ul></ul><ul><ul><li>Describes the conceptual relationships of different types of information </li></ul></ul><ul><ul><li>Is independent of a particular database management system (DBMS) </li></ul></ul><ul><ul><li>Primarily represents entities and their relationships </li></ul></ul><ul><ul><li>Is free from the aspects of physical implementation </li></ul></ul><ul><ul><li>Can be transferred to the Physical Data Model (PDM) using a simple generation procedure </li></ul></ul>
  11. 11. Enterprise Modeling Perspective – Database Modeling Features <ul><li>Physical Data Modeling </li></ul><ul><ul><li>Represents the overall physical structure of a database </li></ul></ul><ul><ul><li>Describes the physical relationships between different types of objects </li></ul></ul><ul><ul><li>Is dependent on a particular database management system (DBMS) </li></ul></ul><ul><ul><li>Describes tables, their references, domains, business rules, defaults, views, procedures </li></ul></ul><ul><ul><li>When converted to a Conceptual Data Model, only entities and their relationships and their related objects are converted </li></ul></ul><ul><ul><ul><li>Procedures, views are not converted. </li></ul></ul></ul><ul><ul><li>Can be generated using existing CDM or reverse engineering a database </li></ul></ul><ul><ul><li>IQ Join Indexes are supported </li></ul></ul>
  12. 12. Enterprise Modeling Perspective – Information Liquidity Modeling Features <ul><li>Information Liquidity Model </li></ul><ul><ul><li>Build an Information Liquidity Model (ILM) </li></ul></ul><ul><ul><li>Model represents your replication environment </li></ul></ul><ul><ul><li>Reverse engineer an existing replication environment </li></ul></ul><ul><ul><li>Generate Replication Server .SQL files to build replication environment </li></ul></ul><ul><ul><li>Customize the ILM to suit physical and performance considerations </li></ul></ul><ul><ul><li>Use to model and create a staging database for IQ </li></ul></ul>
  13. 13. Enterprise Modeling Perspective – Relevance to Sybase IQ <ul><ul><li>Use the PDM to reverse engineer your ASE database </li></ul></ul><ul><ul><ul><li>Model can be used to create IQ table creation scripts </li></ul></ul></ul><ul><ul><ul><li>What about Stored procedure scripts </li></ul></ul></ul><ul><ul><li>Use ILM to setup setup a staging database for IQ </li></ul></ul><ul><ul><ul><li>Will be used to move data into IQ from ASE </li></ul></ul></ul>
  14. 14. Database Development and IQ Yes, these features apply to Sybase IQ
  15. 15. Productivity Features In WorkSpace <ul><li>Productivity Features </li></ul><ul><li>In WorkSpace 1.7 </li></ul>
  16. 16. Schema Development <ul><li>Full schema objects support </li></ul><ul><ul><li>Visual development and debugging support for Stored procedures, user-defined functions, and events </li></ul></ul><ul><ul><li>Creation and modification of tables, keys, and indexes </li></ul></ul><ul><ul><li>Proxy Table awareness </li></ul></ul><ul><li>Database Exploring </li></ul><ul><ul><li>Database navigation/exploring </li></ul></ul><ul><ul><li>Tree-based listing of database schema objects </li></ul></ul><ul><ul><li>Table data viewing and editing </li></ul></ul><ul><ul><li>Server import from SQL.INI file and LDAP server </li></ul></ul>
  17. 17. SQL Development <ul><li>SQL Editor </li></ul><ul><ul><li>Inline Syntax validation </li></ul></ul><ul><ul><li>Content assist (auto completion) </li></ul></ul><ul><ul><li>Powerful Templates </li></ul></ul><ul><ul><ul><li>Lots of Built-in templates </li></ul></ul></ul><ul><ul><ul><li>Parameterized for repeatable use </li></ul></ul></ul><ul><ul><ul><li>Easy to add powerful new user-defined templates </li></ul></ul></ul><ul><ul><ul><li>Import/export to share with team members </li></ul></ul></ul>
  18. 18. SQL Development (Cont.) <ul><li>Visual SQL Builder </li></ul><ul><ul><li>Build large queries with ease </li></ul></ul><ul><ul><li>Supports cross-database joins, nested queries, variables, etc. </li></ul></ul><ul><li>Execution and Results Handling </li></ul><ul><ul><li>Cancel execution, run in background, etc </li></ul></ul><ul><ul><li>Save results in multiple formats (XML, HTML, CSV) </li></ul></ul><ul><ul><li>Execution History </li></ul></ul><ul><li>Scripting </li></ul><ul><ul><li>Full SQL Editor capabilities </li></ul></ul><ul><ul><li>SQL file execution support </li></ul></ul>
  19. 19. SQL Debugging <ul><li>Non-intrusive </li></ul><ul><ul><li>No source code change required </li></ul></ul><ul><li>Supports Stored procedures, user-defined functions, events </li></ul><ul><li>Full debugging control </li></ul><ul><ul><li>Add/Remove, Enable/Disable Breakpoints </li></ul></ul><ul><ul><li>Step In/Over/Out, Resume, Continue, Terminate </li></ul></ul><ul><ul><li>View and set local variables </li></ul></ul><ul><li>Multi-session, Multi-object debugging </li></ul><ul><li>External client/application debugging </li></ul><ul><li>Referenced Tables View and Table Data Editor </li></ul><ul><ul><li>Enables the viewing and editing of tables while debugging </li></ul></ul>
  20. 20. New Features in Workspace 2.0 <ul><li>New Features </li></ul><ul><li>In WorkSpace 2.0 </li></ul>
  21. 21. New Features: Schema Development <ul><ul><li>Powerful new Multi-page Schema Editors and Wizards </li></ul></ul><ul><ul><ul><li>Database Object Schema definition support </li></ul></ul></ul><ul><ul><ul><ul><li>Tables, Indexes, Primary Keys, Foreign Keys, Constraints </li></ul></ul></ul></ul><ul><ul><ul><ul><li>Rules, Defaults </li></ul></ul></ul></ul><ul><ul><ul><ul><li>User-defined Data Types </li></ul></ul></ul></ul><ul><ul><ul><ul><li>Views </li></ul></ul></ul></ul><ul><ul><ul><ul><li>Stored Procedures </li></ul></ul></ul></ul><ul><ul><ul><li>Eliminate complexity of creating and using objects </li></ul></ul></ul><ul><ul><ul><li>Integrated and Easy to use </li></ul></ul></ul><ul><ul><ul><li>Support Permissions handling </li></ul></ul></ul><ul><ul><ul><ul><li>Grant/Revoke for users/groups/roles </li></ul></ul></ul></ul>
  22. 22. New Features: SQL Development <ul><ul><li>Scripting </li></ul></ul><ul><ul><ul><li>Multi-file execution support </li></ul></ul></ul><ul><ul><li>SQL Scrapbook </li></ul></ul><ul><ul><ul><li>Supports quick ‘isql like’ ad-hoc command execution </li></ul></ul></ul><ul><ul><ul><li>Quick execution on different server </li></ul></ul></ul><ul><ul><li>SQL Editor Enhancements </li></ul></ul><ul><ul><ul><li>Intelligent Templates </li></ul></ul></ul><ul><ul><ul><ul><li>Table schema awareness for writing DML statements </li></ul></ul></ul></ul><ul><ul><ul><li>Quick Open (via F3 Hot Key) for database object definition in Editor </li></ul></ul></ul>
  23. 23. New Features: DDL Generation <ul><ul><li>DDL Generation support for </li></ul></ul><ul><ul><ul><li>Database, Tables, Indexes, Keys, Constraints, UDTs, Views, Stored Procedures, Events, and User defined functions </li></ul></ul></ul><ul><ul><li>Highly Customizable </li></ul></ul><ul><ul><ul><li>Fully flexible and granular generation as per object granularity in database server </li></ul></ul></ul><ul><ul><ul><li>Single and Multi-file scripts generation </li></ul></ul></ul><ul><ul><li>Captures Permissions </li></ul></ul><ul><ul><li>Includes DROP statements </li></ul></ul><ul><ul><li>Ready for quick and easy version control </li></ul></ul>
  24. 24. IQ New Features <ul><ul><li>IQ Global Temporary Tables </li></ul></ul><ul><ul><ul><li>Creation and manipulation </li></ul></ul></ul><ul><ul><ul><li>Debug time support – Referenced Tables view </li></ul></ul></ul><ul><ul><li>IQ Proxy Objects </li></ul></ul><ul><ul><ul><li>Proxy tables </li></ul></ul></ul><ul><ul><ul><li>Awareness in appropriate tools </li></ul></ul></ul><ul><ul><ul><ul><li>SQL Editor, Visual SQL Dialog, and Referenced Tables View </li></ul></ul></ul></ul><ul><ul><li>IQ HTML Query Plan Generation </li></ul></ul>
  25. 25. New Features: Other Key Enhancements (Cont). <ul><ul><li>Basic Data Migration </li></ul></ul><ul><ul><ul><li>Quick dataset creation for preserving and moving between servers </li></ul></ul></ul><ul><ul><ul><li>Based on SQL INSERT </li></ul></ul></ul><ul><ul><li>Data Manipulation </li></ul></ul><ul><ul><ul><li>Support data manipulation in Table Data Editor </li></ul></ul></ul><ul><ul><ul><li>Ability to save DML used to alter data </li></ul></ul></ul>
  26. 26. Sybase IQ Specific Scenario Migrating An ASE Database to IQ
  27. 27. Demo <ul><li>Use-case #1 - Modeling </li></ul><ul><ul><ul><li>ASE Reverse Engineering </li></ul></ul></ul><ul><ul><ul><li>Creation of table creation scripts </li></ul></ul></ul><ul><ul><li>Use-case #2 – Tables and Indexes </li></ul></ul><ul><ul><ul><li>Create table, index and index advisor </li></ul></ul></ul><ul><li>Use-case #3 – Stored Procedures </li></ul><ul><ul><ul><li>Write a new IQ stored procedure, execute and debug it </li></ul></ul></ul><ul><ul><ul><li>Show Compatibility Check for ASE stored procedures </li></ul></ul></ul>
  28. 28. Where To Get More Info
  29. 29. Where To Get More Information <ul><ul><li>Learn more about Sybase IQ: </li></ul></ul><ul><ul><ul><li>http:// </li></ul></ul></ul><ul><ul><li>Learn more about Sybase WorkSpace: </li></ul></ul><ul><ul><ul><li>http:// /products/development/workspace </li></ul></ul></ul><ul><ul><li>Learn more about PowerDesigner: </li></ul></ul><ul><ul><ul><li>http:// </li></ul></ul></ul><ul><ul><li>Download the Sybase WorkSpace evaluation and give it a try: </li></ul></ul><ul><ul><ul><li>http:// </li></ul></ul></ul><ul><ul><li>Watch the WorkSpace QuickStart Videos: </li></ul></ul><ul><ul><ul><li> </li></ul></ul></ul><ul><ul><li>Checkout the WorkSpace White Papers: </li></ul></ul><ul><ul><ul><li>http:// =9814 </li></ul></ul></ul>
  30. 30. Q&A Subtitle will go here
  31. 31. Thank You!! Subtitle will go here