SQL Azure for SoCalCodCamp

  • 1,393 views
Uploaded on

Deck for SoCalCodeCamp - Jan 2011

Deck for SoCalCodeCamp - Jan 2011

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,393
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
22
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Lynn Langithttp://blogs.msdn.com/SoCalDevGaltwitter - @llangit
    Ike Ellishttp://EllisTeam.blogspot.comtwitter - @EllisTeam1
    January 2010
  • 2. Windows Azure Platform
    Compute: Virtualized compute environment
    Storage: Durable, scalable, & available storage
    Management: Automated, model-driven management
    Database:Relational processing for structured/unstructured data – Data Marketplace
    Service Bus: General purpose application bus
    Access Control: Rules-driven, claims-based access control
  • 3. Data Storage Choices
    On-premise
    SQL Server or other s/w on-premise
    Resource governance @ machine
    Full h/w control – 100% compatibility
    Roll your own HA/DR/scale
    Dedicated
    SQL Azure (RDBMS)
    Hosted
    Virtual DB server
    Resource governance @ LDB
    Security @ LDB
    Auto HA, Fault-Tolerance
    Self-provisioning
    High RDMS compatibility
    Hosted SQL Server or other
    Roll-your-own HA/DR/scale
    Security @ DB Server/OS
    Resources
    Windows Azure
    Storage
    Tables
    Queues
    Blobs (also VMs)
    Shared
    Low
    “Friction”/Control
    High
  • 4. Application Topologies
    SQL Server
    App code/ Tools
    App code/ Tools
    Application/ Browser
    Data Sync
    Windows
    Azure
    Windows
    Azure
    App Code
    (ASP.NET)
    App Code
    (ASP.NET)
    T-SQL / TDS
    App Code
    (ASP.NET)
    App Code
    (ASP.NET)
    TSQLTDS
    TSQLTDS
    SQL Azure
    SQL Azure
    SQL Azure
    Code Far
    Code Near
    Hybrid
  • 5. Database Replicas
    Multiple Physical Replicas
    Replica 1
    Single Primary
    Single Logical Database
    Replica 2
    DB
    Replica 3
  • 6. Logical vs. Physical
  • 7. SQL Azure focus on logical administration
    Schema creation and management
    Query optimization
    Security management (Logins, Users, Roles)
    Service handles physical management
    Automatically replicated with HA “out of box”
    Transparent failover in case of failure
    Load balancing of data to ensure SLA
    Logical vs. Physical Administration
    DBA role places more focus on logical management
  • 8. Customer Evidence
  • 9. Demo – SQL Azure Portal
  • 10. Demo– DB Manager - Tables
  • 11. Demo– DB Manager – Stored Procs
  • 12. Each account has zero or more servers
    Azure wide, provisioned in a common portal
    Billing instrument
    Each server has one or more databases
    Contains metadata about the databases and usage
    Unit of authentication
    Unit of Geo-location
    Generated DNS based name
    Each database has standard SQL objects
    Unit of consistency
    Unit of multi-tenancy
    Contains Users, Tables, Views, Indices, etc.
    Most granular unit of billing
    Service Provisioning Model
    Account
    Server
    Database
  • 13. SQL Azure Database Access
    Web Portal
    (API)
    Your App
    Change Connection String
  • 14. ADO.NET, ODBC, PHP (NOT OLE DB)
    Client libraries pre-installed
    ASP.NET controls
    Clients connect directly to ONE database
    Cannot hop across DBs (no USE)
    May need to include <login>@<server>
    Use familiar tools
    Use connection pooling for efficiency
    Connection Model
  • 15. Firewall Rules
  • 16. DB Manager Portal (Silverlight)
    SQL Server Management Studio 2008 R2
    Visual Studio 2010 / DACPACs
    SQLCMD
    SQL Azure as source data
    SSRS, SSIS, SSAS 2008 R2
    SharePoint, Excel, PowerPivot 2010
    Demo – Connect via tools
  • 17. SSMS 2008 R2 – Cloud vs. On Premise
  • 18. Query Optimizer and Client Statistics can be used with SQL Azure data
  • 19. Feature not yet implemented
    Physical layer – Microsoft handles it
    Commodity vs. Business
    Multi-tenant
    We must play nice together
    Compatibility Overview
  • 20. Maximum single database size is 50GB
    Database size calculation
    Includes: primary replica data, objects and indexes
    Does NOT include: logs, master database, system tables, server catalogs or additional replicas
    CTP support for auto-partitioning & fan-out queries (Federation)
    Currently must handle partitioning logic within the application
    Also called Database ‘sharding’
    Sharding Utility, using TPL at http://enzosqlshard.codeplex.com/
    Database Size Limits
  • 21. Compatibility
    In Scope
    Out of Scope
    • Distributed Transactions
    • 29. Distributed Query
    • 30. CLR
    • 31. Service Broker
    • 32. Physical server or catalog DDL and views
  • Tables (joins) , Views , Stored Procedures, Triggers
    Indices
    Index Management
    Statistics Management
    Spatial data
    Local Transactions
    Supported T-SQL
    • T-SQL elements
    • 33. Reserved keywords
    • 34. Create/drop databases
    • 35. Create/alter/drop tables
    • 36. Create/alter/drop users and logins
    • 37. Constants, Constraints, Cursors, Local temporary tables
    • 38. Table Variables
  • CLR
    Database file placement
    Database mirroring
    Distributed queries
    Distributed transactions
    Filegroup management
    Full Text Search
    Unsupported T-SQL
    • Global temporary tables
    • 39. SQL Server configuration options
    • 40. SQL Server Service Broker
    • 41. System tables
    • 42. Profiler / Trace Flags
  • Generating, then modifying, the SQL DDL script
    Loading in the data (bcp, SSIS, etc…)
    -OR-
    SQL Azure Migration Wizard
    http://sqlazuremw.codeplex.com
    Demo – SQL Migration Wizard
  • 43. SQL Migration Wizard
  • 44. What Could Go Wrong?
  • 45. Progress!
  • 46. Success!
  • 47. Remove unsupported features, such as…
    Migrating By Hand
    • USE DATABASE
    • 48. ON PRIMARY (Filegroups)
    • 49. Extended Properties
    • 50. NOT FOR REPLICATION
    • 51. Various Index options (WITH)
    • 52. Windows logins
    • 53. Unsupported XML features
    • 54. Remove DEFAULT NEWSEQUENTIALID()
    • 55. Encrypted Stored Procedures
    • 56. No Heap tables (all tables must have clustered indices)
    • 57. UDTs
  • Advanced Migration
  • 3 month release cycle
    Active CTPs at sqlazurelabs.com
    OData
    Data Sync
    Sign up for 2011 betas on Windows Azure portal
    SQL Azure Reporting Services
    Roadmap
  • 64. Added new Dynamic Management Views (DMVs)
    Allows return of state information for health monitoring & performance tuning
    sys.dm_exec_connections, _requests , _sessions, _tran_database_transactions, _active_transactions, _partition_stats
    Added ability to move between Web or Business edition
    ALTER DATABASE database_name { MODIFY (MAXSIZE = {1 | 10} GB) }
    Increased idle session conn timeout (from 5 to 30 minutes)
    Improves experience while using connection pooling and other interactive tools
    Improved long running transaction algorithm
    Allows import and export of much larger amounts of data without having to chunk your data
    Added - Feb 2010
  • 65. Addedavailability in 20 more countries (now 41 total)
    Complete list here
    Started with 21 countries, now doubled
    Addedsupport for MARS
    Simplifies the design process
    Added support for ALTER (rename) Database
    Adds features found in RDMS to SQL Azure
    Included support in Visual Studio 2010 to manage SQL Azure
    Allows direct management of SQL Azure databases via Server Explorer
    Also found in SQL Server Management Studio
    Added new labs feature - sandbox
    https://www.sqlazurelabs.com/
    Added - April 2010
  • 66. Addedupper size limit of 50 GB
    Available June 28, 2010
    Initial discount on upgrading maximum size
    Addedsupport for Spatial Data Types
    Support for Geography & Geometry data types and queries
    Support for HierarchyID data types (tree-like database structures)
    Added support DataSync Service for SQL Azure
    Initially available in CTP via sqlazurelabs.com
    Announced SQL Server Web Manager
    Web-based SQL Azure management tool
    Initially available as CTP in summer 2010
    Added Access 10 support for SQL Azure
    Support from Office 2010 to SQL Azure
    Added - June 2010
  • 67. Added Database copy capabilities
    Same server or cross server
    CREATE DATABASE DB2A AS COPY OF Server1.DB1A
    Monitor via sys.dm_database_copies
    Increased MSDN documentation for common programming scenarios (with code examples)
    Enhanced Project Houston
    Supported in multiple data centers
    View and StoredProc designers added
    Added - August 2010
  • 68. ImprovedLightweight Silverlight Management Portal at windows.azure.com
    AnnouncedBetas
    SQL Azure Reporting Services
    SQL Azure Federation
    SQL Azure Data Sync v 2
    Added - Nov 2010
  • 69. Opportunities and Futures
    Partitioning Utility / Federation
    Profiler-like traces / deadlock graphs
    Geo-location and geo-redundancy
    Distributed query
    Security w/Active Directory, Windows Live ID, etc
    Support for multiple levels of hardware and software isolation
    BI features – SSRS, SSIS, SSAS
  • 70. What’s Your Idea?
  • 71. Windows Azure Platform –here
    Windows Azure Platform Training Kit – here
    MSDN Development Center – here
    Team Blogs – SSDS and SQLAzure
    Want to Know More?
  • 72. Lynn Langit
    Blog: http://blogs.msdn.com/SoCalDevGal
    Twitter- @llangit
    Ike EllisBlog: http://EllisTeam.blogspot.comTwitter - @EllisTeam1
    Contact Us
  • 73. TeachingKidsProgramming.org
    • Do a Recipe  Teach a Kid (Ages 10 ++)
    • 74. Free Courseware (recipes) Microsoft SmallBasic