Data Migration and Data-Tier Applications with SQL Azure
Upcoming SlideShare
Loading in...5
×
 

Data Migration and Data-Tier Applications with SQL Azure

on

  • 1,532 views

SQL Saturday Philadelphia March 5, 2011, Migrating SQL Server database applications to SQL Azure with data migration and data-tier applications.

SQL Saturday Philadelphia March 5, 2011, Migrating SQL Server database applications to SQL Azure with data migration and data-tier applications.

Statistics

Views

Total Views
1,532
Views on SlideShare
1,532
Embed Views
0

Actions

Likes
0
Downloads
30
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • Slide ObjectiveUse this slide to transition into an explanation of SQL Azure Database (Reporting and Data Sync will be covered later)Explain at a high level how SQL Azure worksSpeaker NotesDesign Principle of SQL Azure: Focus on combining the best features of SQL Server running at scale with low frictionSQL Azure is a high availability databaseAlways three transaction consistent replicas of the databaseOne primary replica; two slave replicasFailure of a replica will result in another replica being spun up immediately by the fabricFailure of the primary replica means a slave replica will become the primary and a new slave will spin upMinimal down timeTypically just a few dropped connectionsEasy to code for the failover scenario- if you are ding god connection management and error handling will be fineClustered index required on all tables to allow replicationNotesUseful article from SQL Azure teamhttp://msdn.microsoft.com/en-us/magazine/ee321567.aspx
  • So what are the requirements for this? It is part of Visual Studio 2010 functionality. Additionally, to deploy data-tier applications, you need to running SQL 2008 R2 (enterprise
  • This is a view of an expanded DACPAC—as you can see it consists of 3 SQL scripts—the main schema script and any pre and post deployment scripts. There are a couple of XML files that define the physical and logical models around the data. As vendors begin to use this technology as method to roll out databases for their technology, as DBAs this will be the place where we can preview their schema and identify any potential issues. Also, not that you would do this, but always review code in a dacpac you downloaded from an unknown source, to ensure that there isn’t any malicious code. In Visual Studio 2010 Premium and higher, you can compare two DACPAC schema files, or just use a file comparison tool.

Data Migration and Data-Tier Applications with SQL Azure Data Migration and Data-Tier Applications with SQL Azure Presentation Transcript

  • Migrate SQL Server Apps to SQL Azure Cloud DB
    Mark Kromer, Microsoft
    Joe D’Antoni, Synthes
  • Session Objectives and Takeaways
    Objectives:
    Overview of SQL Azure Cloud DB
    Migrate application databases to Azure
    Demonstrate database migration from SQL Server to Cloud
    Application Database Deployment with Data-Tier Application
  • SQL Azure DatabaseThe first and only true relational database as a service
    Subtitle color
    Elastic Scale
    Self-managed
    Developer Agility
    • Build cloud-based database solutions on consistent relational model
    • Leverage existing skills through existing ecosystem of developer and management tools
    • Explore new data application patterns
    • Database utility; pay as you grow
    • Flexible load balancing
    • Business-ready SLAs
    • Enable multi-tenant solutions
    • World-wide presence
    • Easy provisioning and deployment
    • Auto high-availability and fault tolerance
    • Self-maintaining infrastructure; self-healing
    • No need for server or VM administration
  • SQL Azure Database
    Single Logical
    Database
    Multiple PhysicalReplicas
    Replica 1
    Single Primary
    Based on SQL Server 2008 R2 engine
    Use same tools and data access frameworks
    Six global datacenters
    High Availability & Redundancy
    Reads are completed at the primary
    Writes are replicated to a quorum of secondaries
    Replica 2
    DB
    Replica 3
    Multiple
    Secondaries
  • Application Topologies
    SQL Azure Access from within and outside
    MS Datacenter
    (On-premises & Azure Compute)
    SQL Azure Access from outside
    MS Datacenter
    (On-premises)
    SQL Azure access from
    within MS Datacenter
    (Azure compute)
    SQL Server
    App code/ Tools
    App code/ Tools
    Application/ Browser
    SOAP/REST
    HTTP/S
    Astoria/REST - EDM
    HTTP/S
    Windows
    Azure
    SQL Azure
    Data Sync
    App Code
    (ASP.NET)
    App Code
    (ASP.NET)
    T-SQL (TDS)
    App Code
    (ASP.NET)
    App Code
    (ASP.NET)
    T-SQL (TDS)
    T-SQL (TDS)
    Windows
    Azure
    SQL Azure
    SQL Azure
    SQL Azure
    Code Near
    Code Far
    Hybrid
  • demo
    SQL Azure Database Management
  • demo
    Application Migration from On-Premises SQL Server to SQL Azure in the Cloud
  • demo
    Database Migration from SQL Server to SQL Azure
  • Introducing SQL Azure Data Sync”Synchronization of SQL Server and SQL Azure Databases”
    CTP1 (Now)
    SQL Azure Database
    Sync
    Sync
    SQL Azure
    Data Sync
    Remote Offices
    Retail Stores
    Sync
    Sync
    Sync
    Sync
    Sync
    CTP2
    On-Premises (Headquarters)
  • On-Premises to Cloud Symmetry
    SQL Server to SQL Azure Sync
    SQL Azure
    Benefits
    • Makes cloud extension rather than replacement
    • Enables moving workload to cloud in stages preserving investment in existing infrastructure
    • New scenarios spanning enterprise, cloud
    Sync
  • SQL Azure to SQL Azure Synchronization
    Benefits
    • Geo-synchronization of data across data centers
    • Scale-out read or read/write
  • Extending Data to Retail and Remote Offices
    SQL Azure to SQL Server Sync
    Benefits
    • Share data with remote and retail offices, bringing data closer to the end-users
    • Lower latency – data access doesn’t require round trips
    • Higher availability – app still runs if server is unreachable
    • Reduced network utilization – most data access is local
    SQL Azure
  • SQL Azure Data Sync CTP1
    (Available now from
    http://azure.com)
    Sync End to End Scenarios
    Offline
    Applications
    Sync
    Sync
    Sync
    Sync
    On-Premises Applications
    Sync
    Sync
    Sync
    SQL Azure Database
    Sync
    Sync
    Sync
    Microsoft Sync Framework 4.0
    CTP available now!
    Retail & Remote Offices
    SQL Azure Data Sync
    http://azure.com
    SQL Azure Data Sync CTP2
    (Coming in near future)
  • Data Tier Applications
    Data-Tier Application Project
    (Departmental apps in V1)
    • New feature in SQL Server 2008 R2
    • Allows developers to own the database schema and definitions
    • Still needs work (more to come)
    • Microsoft seems to have invested deeply to build this, so it will get better (hopefully)
    • Interacts with SQL Azure—this is one method of deploying application code there
    Visual Studio
    Build
    Deploy
    .dacpac
    SQL Azure
  • Software Requirements
  • What’s in a DACPAC?
  • demo
    Application Deployment to SQL Azure using Data Tier Applications
  • Thank you!
    Mark Kromer, Microsoft
    Joe D’Antoni, Synthes
    http://www.sqlmag.com/blogs/sql-server-bi.aspx
    http://mssqldude.wordpress.com
    http://twitter.com/mssqldude
    Philadelphia SQL Server User Group VP
    http://joedantoni.wordpress.com
    http://twitter.com/jdanton