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

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Data Migration and Data-Tier Applications with SQL Azure

1,261

Published on

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.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,261
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
33
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
  • 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.
  • Transcript

    • 1. Migrate SQL Server Apps to SQL Azure Cloud DB
      Mark Kromer, Microsoft
      Joe D’Antoni, Synthes
    • 2. 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
    • 3. 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
      • 4. Leverage existing skills through existing ecosystem of developer and management tools
      • 5. Explore new data application patterns
      • 6. Database utility; pay as you grow
      • 7. Flexible load balancing
      • 8. Business-ready SLAs
      • 9. Enable multi-tenant solutions
      • 10. World-wide presence
      • 11. Easy provisioning and deployment
      • 12. Auto high-availability and fault tolerance
      • 13. Self-maintaining infrastructure; self-healing
      • 14. 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
    • 15. 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
    • 16. demo
      SQL Azure Database Management
    • 17. demo
      Application Migration from On-Premises SQL Server to SQL Azure in the Cloud
    • 18. demo
      Database Migration from SQL Server to SQL Azure
    • 19. 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)
    • 20. On-Premises to Cloud Symmetry
      SQL Server to SQL Azure Sync
      SQL Azure
      Benefits
      • Makes cloud extension rather than replacement
      • 21. Enables moving workload to cloud in stages preserving investment in existing infrastructure
      • 22. New scenarios spanning enterprise, cloud
      Sync
    • 23. SQL Azure to SQL Azure Synchronization
      Benefits
      • Geo-synchronization of data across data centers
      • 24. 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
      • 25. Lower latency – data access doesn’t require round trips
      • 26. Higher availability – app still runs if server is unreachable
      • 27. Reduced network utilization – most data access is local
      SQL Azure
    • 28. 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)
    • 29. Data Tier Applications
      Data-Tier Application Project
      (Departmental apps in V1)
      • New feature in SQL Server 2008 R2
      • 30. Allows developers to own the database schema and definitions
      • 31. Still needs work (more to come)
      • 32. Microsoft seems to have invested deeply to build this, so it will get better (hopefully)
      • 33. Interacts with SQL Azure—this is one method of deploying application code there
      Visual Studio
      Build
      Deploy
      .dacpac
      SQL Azure
    • 34. Software Requirements
    • 35. What’s in a DACPAC?
    • 36. demo
      Application Deployment to SQL Azure using Data Tier Applications
    • 37. 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

    ×