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.

Deploying your Application to SQLRally

843 views

Published on

SQL Azure Presentation from SQL Rally

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Deploying your Application to SQLRally

  1. 1. Migrate SQL Server Apps to SQL Azure Cloud DB<br />Joe D’Antoni, Synthes<br />12-May-2011 <br />
  2. 2. About Me<br /><ul><li>DBA with 10+ years of experience
  3. 3. Primarily in health care
  4. 4. Vice President of the Philadelphia SQL Server User Group
  5. 5. I like to talk about and use new technologies
  6. 6. @jdanton on Twitter
  7. 7. Blog—joedantoni.wordpress.com</li></li></ul><li>Session Objectives and Takeaways<br />Objectives:<br />Understand Cloud Computing<br />Business cases for using SQL Azure/Cloud Computing<br />Building your SQL Azure Database<br />Interacting with and deploying code to you SQL Azure database<br />Reporting Services (coming soon, but demo’ed today)<br />
  8. 8. Cloud Computing Overview <br />
  9. 9. Cloud in the news…<br />May 6, 2011<br />"Most of the work going forward will be integration, and architectural in nature. There will be a need for people in all levels who are thinking about a composite world. You have to think about how parts fit, which is an architectural mindset. It's not implementation of a feature, it's architectural in nature”<br />Bob Kelly, MS VP Server and Platform Marketing <br />
  10. 10. Amazon Outage<br />
  11. 11. Why your CIO Likes Cloud Computing<br />Increased flexibility on new project<br />Capital spending can be lower<br />Reduce costs of offsite backup<br />Potentially reduced employee costs<br />
  12. 12. Legal? <br />“In theory, you have the same legal protection in the cloud, that you do in your own data center, but….Amazon doesn’t care as much about your data as getting the AG off of their back”<br />--General Counsel of medium size healthcare company<br />
  13. 13. SQL Azure <br />The only purely database offering currently available<br /><ul><li>Microsoft’s SQL Specific Platform Offering
  14. 14. Limited Selection of SQL Server Features
  15. 15. 50 Gb size limit for an individual database
  16. 16. No native backup command
  17. 17. MS guarantees 99.95% availability</li></li></ul><li>SQL Azure DatabaseThe first and only true relational database as a service<br />Subtitle color<br />Elastic Scale<br />Self-managed<br />Developer Agility<br /><ul><li>Build cloud-based database solutions on consistent relational model
  18. 18. Leverage existing skills through existing ecosystem of developer and management tools
  19. 19. Explore new data application patterns
  20. 20. Database utility; pay as you grow
  21. 21. Flexible load balancing
  22. 22. Business-ready SLAs
  23. 23. Enable multi-tenant solutions
  24. 24. World-wide presence
  25. 25. Easy provisioning and deployment
  26. 26. Auto high-availability and fault tolerance
  27. 27. Self-maintaining infrastructure; self-healing
  28. 28. No need for server or VM administration</li></li></ul><li>Why your CIO thinks the cloud is cool…<br />Lower upfront capital costs<br />Reduces costs of offsite backup<br />Potentially reduce employee costs<br />Quicker spin up of new environments<br />Ideal for businesses who need temporary capacity<br />
  29. 29. Why your Legal Department thinks it’s not…<br />A good friend of mine, who shall remain nameless…<br />“In theory, you have the same legal protection in the cloud, that you do in your own data center, but….Amazon doesn’t care as much about your data as getting the AG off of their back”<br />--General Counsel of medium size healthcare company<br />
  30. 30. SQL Azure Costs<br />SQL Azure<br />Web Edition<br />$9.99 per database up to 1GB per month<br />$49.95 per database up to 5GB per month<br />Business Edition<br />$99.99 per database up to 10GB per month<br />$199.98 per database up to 20GB per month<br />$299.97 per database up to 30GB per month<br />$399.96 per database up to 40GB per month<br />$499.95 per database up to 50GB per month<br />Data Transfers<br />North America and Europe regions<br />$0.10 per GB in<br />$0.15 per GB out<br />
  31. 31. On-Premise SQL Server Costs <br />Server - $15k<br />SQL Server Standard Edition (2 CPUs) - $14,200<br />DBA - $85k year<br />Tape backups - $20k<br />Upfront Costs - ~$50k<br />Annual Costs - $105k<br />
  32. 32. SQL Azure Limitations<br />Connection Constraints<br />SQL Azure Database provides a large-scale multi-tenant database service on shared resources. In order to provide a good experience to all SQL Azure Database customers, your connection to the service may be closed due to the following conditions:<br />Excessive resource usage<br />Connections that have been idle for 30 minutes or longer<br />Failover because of server failures<br />
  33. 33. Limitations, Cont’d<br />Must have clustered index on all of your tables<br />No Backup Command<br />SQL Authentication only<br />No SQL Agent*<br />Both the READ_COMMITTED_SNAPSHOT and ALLOW_SNAPSHOT_ISOLATION database options are set to ON in SQL Azure Database<br />50 GB Limit – Database can be sharded, but it’s not easy <br />
  34. 34. SQL Azure Database<br />Single Logical<br />Database<br />Multiple PhysicalReplicas<br />Replica 1<br />Single Primary<br />Based on SQL Server 2008 R2 engine<br />Use same tools and data access frameworks<br />Six global datacenters<br />High Availability & Redundancy<br />Reads are completed at the primary<br />Writes are replicated to a quorum of secondaries<br />Replica 2<br />DB<br />Replica 3<br />Multiple<br />Secondaries<br />
  35. 35. Application Topologies<br />SQL Azure Access from within and outside <br />MS Datacenter<br />(On-premises & Azure Compute)<br />SQL Azure Access from outside<br /> MS Datacenter<br />(On-premises)<br />SQL Azure access from<br />within MS Datacenter <br />(Azure compute)<br />SQL Server<br />App code/ Tools<br />App code/ Tools<br />Application/ Browser<br />SOAP/REST<br />HTTP/S<br />Astoria/REST - EDM<br />HTTP/S<br />Windows<br />Azure<br />SQL Azure<br /> Data Sync<br />App Code<br />(ASP.NET)<br />App Code<br />(ASP.NET)<br />T-SQL (TDS)<br />App Code<br />(ASP.NET)<br />App Code<br />(ASP.NET)<br />T-SQL (TDS)<br />T-SQL (TDS)<br />Windows<br />Azure<br />SQL Azure <br />SQL Azure <br />SQL Azure <br />Code Near<br />Code Far<br />Hybrid<br />
  36. 36. SQL Azure Database Management<br />demo<br />
  37. 37. Database Migration from SQL Server to SQL Azure<br />demo<br />
  38. 38. Introducing SQL Azure Data Sync”Synchronization of SQL Server and SQL Azure Databases”<br />CTP1 (Now)<br />SQL Azure Database<br />Sync<br />Sync<br />SQL Azure <br />Data Sync<br />Remote Offices<br />Retail Stores<br />Sync<br />Sync<br />Sync<br />Sync<br />Sync<br />CTP2<br />On-Premises (Headquarters)<br />
  39. 39. On-Premises to Cloud Symmetry<br /> SQL Server to SQL Azure Sync<br />SQL Azure<br />Benefits<br /><ul><li>Makes cloud extension rather than replacement
  40. 40. Enables moving workload to cloud in stages preserving investment in existing infrastructure
  41. 41. New scenarios spanning enterprise, cloud</li></ul>Sync<br />
  42. 42. SQL Azure to SQL Azure Synchronization<br />Benefits<br /><ul><li>Geo-synchronization of data across data centers
  43. 43. Scale-out read or read/write</li></li></ul><li>Extending Data to Retail and Remote Offices<br />SQL Azure to SQL Server Sync<br />Benefits<br /><ul><li>Share data with remote and retail offices, bringing data closer to the end-users
  44. 44. Lower latency – data access doesn’t require round trips
  45. 45. Higher availability – app still runs if server is unreachable
  46. 46. Reduced network utilization – most data access is local</li></ul>SQL Azure<br />
  47. 47. SQL Azure Data Sync CTP1<br />(Available now from <br />http://azure.com)<br />Sync End to End Scenarios<br />Offline <br />Applications<br />Sync<br />Sync<br />Sync<br />Sync<br />On-Premises Applications<br />Sync<br />Sync<br />Sync<br />SQL Azure Database<br />Sync<br />Sync<br />Sync<br />Microsoft Sync Framework 4.0 <br />CTP available now! <br />Retail & Remote Offices<br />SQL Azure Data Sync<br />http://azure.com<br />SQL Azure Data Sync CTP2<br />(Coming in near future)<br />
  48. 48. PowerPivotNetFlix<br />
  49. 49. Reporting Services in SQL Azure<br />
  50. 50. Reporting Services<br />
  51. 51. Data Tier Applications<br />Data-Tier Application Project<br />(Departmental apps in V1)<br /><ul><li>New feature in SQL Server 2008 R2
  52. 52. Allows developers to own the database schema and definitions
  53. 53. Still needs work (more to come)
  54. 54. Microsoft seems to have invested deeply to build this, so it will get better (hopefully)
  55. 55. Interacts with SQL Azure—this is one method of deploying application code there</li></ul>Visual Studio<br />Build<br />Deploy<br />.dacpac<br />SQL Azure<br />
  56. 56. Software Requirements <br />
  57. 57. What’s in a DACPAC? <br />
  58. 58. Application Deployment to SQL Azure using Data Tier Applications<br />demo<br />
  59. 59. Summary<br /><ul><li>The Cloud is coming and we will have to live with it
  60. 60. SQL Azure is still developing, but is not a full fledged enterprise RDBMS, YET.
  61. 61. This fits best with either a smaller quickly growing company, or one that needs short term capacity.
  62. 62. Microsoft seems to have invested deeply to build this, so it will get better </li></li></ul><li>Contact Info<br />@jdanton – Twitter<br />Joedantoni.wordpress.com – Blog<br />jdanton1@yahoo.com -- email<br />

×