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.
Lynn Langithttp://blogs.msdn.com/SoCalDevGaltwitter - @llangit<br />Ike Ellishttp://EllisTeam.blogspot.comtwitter - @Ellis...
Windows Azure Platform<br />Compute:  Virtualized compute environment <br />Storage: Durable, scalable, & available storag...
Data Storage Choices<br />On-premise<br /> SQL Server or other s/w on-premise<br /> Resource governance @ machine<br /> Fu...
Storage Comparison<br />SQL Azure Tables<br />Fully structured<br />Strongly typed<br />Relational (RDMS)<br />Highly scal...
Application Topologies<br />SQL Server<br />App code/ Tools<br />App code/ Tools<br />Application/ Browser<br />  Data Syn...
Database Replicas<br />Multiple Physical Replicas<br />Replica 1<br />Single Primary<br />Single Logical Database<br />Rep...
Logical vs. Physical<br />
SQL Azure focus on logical administration<br />Schema creation and management<br />Query optimization<br />Security manage...
Customer Evidence<br />
Demo – SQL Azure Portal<br />
Demo - Portal for DB (Houston)<br />
Each account has zero or more servers<br />Azure wide, provisioned in a common portal<br />Billing instrument<br />Each se...
SQL Azure Database Access<br />Web Portal<br />(API)<br />Your App<br />Change Connection String<br />
Use ADO.NET, ODBC, PHP (NOT OLE DB)<br />Client libraries pre-installed in Azure roles<br />Support for ASP.NET controls<b...
Connecting to SQL Azure with SSMS 2008 R2 <br />Houston Client – Silverlight (Portal)<br />SQLCMD – can also be used<br />...
SSMS 2008 R2 – Cloud vs. On Premise<br />
Query Optimizer and Client Statistics can be used with SQL Azure data<br />
Feature not yet implemented<br />Physical layer – Microsoft handles it<br />Commodity vs. Business <br />Multi-tenant<br /...
Maximum single database size is 50GB<br />Database size calculation <br />Includes: primary replica data, objects and inde...
Compatibility <br />In Scope<br /><ul><li> Tables, indexes and views
 w/ clustered indices
 Stored Procedures
 Triggers
 Constraints
 Table variables
 Session temp tables
 Spatial datatype</li></ul>Out of Scope<br /><ul><li> Distributed Transactions
 Distributed Query
 CLR
 Service Broker
Physical server or catalog DDL and views</li></li></ul><li>Tables (joins) , Views , Stored Procedures, Triggers<br />Indic...
Reserved keywords
Create/drop databases
Create/alter/drop tables
Create/alter/drop users and logins
Constants, Constraints, Cursors, Local temporary tables
Table Variables</li></li></ul><li>CLR<br />Database file placement<br />Database mirroring<br />Distributed queries<br />D...
SQL Server configuration options
SQL Server Service Broker
System tables
Profiler / Trace Flags</li></li></ul><li>Generating, then modifying, the SQL DDL script<br />Loading in the data (bcp, SSI...
SQL Migration Wizard<br />
What Could Go Wrong?<br />
Progress!<br />
Success!<br />
Remove unsupported features, such as…<br />Migrating By Hand<br /><ul><li>USE DATABASE
ON PRIMARY (Filegroups)
Extended Properties
NOT FOR REPLICATION
Various Index options (WITH)
Windows logins
Unsupported XML features
Remove DEFAULT NEWSEQUENTIALID()
Encrypted Stored Procedures
No Heap tables (all tables must have clustered indices)
UDTs</li></li></ul><li>3 month release cycle<br />Active CTPs at sqlazurelabs.com<br />Roadmap<br />
Added new Dynamic Management Views (DMVs) <br />Allows return of state information for health monitoring & performance tun...
Addedavailability in 20 more countries (now 41 total)<br />Complete list here <br />Started with 21 countries, now doubled...
Addedupper size limit of 50 GB<br />Available June 28, 2010<br />Initial discount on upgrading maximum size<br />Addedsupp...
Added Database copy capabilities<br />Same server or cross server<br />CREATE DATABASE DB2A AS COPY OF Server1.DB1A <br />...
Improved Portal at sql.azure.com<br />Enhanced Houston (Silverlight) portal<br />Connected to main Azure portal<br />Annou...
Upcoming SlideShare
Loading in …5
×

Sql azure dec_2010 Lynn & Ike

1,437 views

Published on

Survey of SQL Azure, SQL Azure Data Sync, SQL Azure OData Feeds, SQL Azure Data Migration Wizard, Roadmap, and PowerPivot Integration. Given on Day of Azure 2, Dec 4th, 2010. Presented by Ike Ellis & Lynn Langit

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Sql azure dec_2010 Lynn & Ike

  1. 1. Lynn Langithttp://blogs.msdn.com/SoCalDevGaltwitter - @llangit<br />Ike Ellishttp://EllisTeam.blogspot.comtwitter - @EllisTeam1<br />
  2. 2. Windows Azure Platform<br />Compute: Virtualized compute environment <br />Storage: Durable, scalable, & available storage<br />Management: Automated, model-driven management<br />Database:Relational processing for structured/unstructured data – Data Marketplace<br />Service Bus: General purpose application bus<br />Access Control: Rules-driven, claims-based access control<br />
  3. 3. Data Storage Choices<br />On-premise<br /> SQL Server or other s/w on-premise<br /> Resource governance @ machine<br /> Full h/w control – 100% compatibility<br />Roll your own HA/DR/scale<br />Dedicated<br />SQL Azure (RDBMS)<br />Hosted<br />Virtual DB server<br />Resource governance @ LDB<br /> Security @ LDB<br />Auto HA, Fault-Tolerance<br />Self-provisioning<br />High RDMS compatibility<br /> Hosted SQL Server or other<br />Roll-your-own HA/DR/scale<br /> Security @ DB Server/OS<br />Resources<br />Windows Azure <br />Storage<br />Tables<br />Queues<br /> Blobs (also VMs)<br />Shared<br />Low<br />“Friction”/Control<br />High<br />
  4. 4. Storage Comparison<br />SQL Azure Tables<br />Fully structured<br />Strongly typed<br />Relational (RDMS)<br />Highly scalable<br />Windows Azure Tables<br />Semi-structured<br />Loosely typed<br />Non-Relational (Not RDMS)<br />Massively scalable<br />
  5. 5. Application Topologies<br />SQL Server<br />App code/ Tools<br />App code/ Tools<br />Application/ Browser<br /> Data Sync<br />Windows<br />Azure<br />Windows<br />Azure<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 />TSQLTDS<br />TSQLTDS<br />SQL Azure <br />SQL Azure <br />SQL Azure <br />Code Far<br />Code Near<br />Hybrid<br />
  6. 6. Database Replicas<br />Multiple Physical Replicas<br />Replica 1<br />Single Primary<br />Single Logical Database<br />Replica 2<br />DB<br />Replica 3<br />
  7. 7. Logical vs. Physical<br />
  8. 8. SQL Azure focus on logical administration<br />Schema creation and management<br />Query optimization<br />Security management (Logins, Users, Roles)<br />Service handles physical management<br />Automatically replicated with HA “out of box”<br />Transparent failover in case of failure<br />Load balancing of data to ensure SLA<br />Logical vs. Physical Administration<br />DBA role places more focus on logical management<br />
  9. 9. Customer Evidence<br />
  10. 10. Demo – SQL Azure Portal<br />
  11. 11. Demo - Portal for DB (Houston)<br />
  12. 12. Each account has zero or more servers<br />Azure wide, provisioned in a common portal<br />Billing instrument<br />Each server has one or more databases<br />Contains metadata about the databases and usage<br />Unit of authentication<br />Unit of Geo-location<br />Generated DNS based name<br />Each database has standard SQL objects<br />Unit of consistency<br />Unit of multi-tenancy<br />Contains Users, Tables, Views, Indices, etc.<br />Most granular unit of billing<br />Service Provisioning Model<br /> Account<br /> Server<br /> Database<br />
  13. 13. SQL Azure Database Access<br />Web Portal<br />(API)<br />Your App<br />Change Connection String<br />
  14. 14. Use ADO.NET, ODBC, PHP (NOT OLE DB)<br />Client libraries pre-installed in Azure roles<br />Support for ASP.NET controls<br />Clients connect directly to a database<br />Cannot hop across DBs (no USE)<br />May need to include <login>@<server><br />Use familiar tools (sqlcmd, osql, SSMS, etc)<br />Use connection pooling for efficiency<br />SSMS 2008 R2 can connect <br />http://blogs.msdn.com/ssds/archive/2009/11/11/9921041.aspx<br />Connection Model<br />
  15. 15. Connecting to SQL Azure with SSMS 2008 R2 <br />Houston Client – Silverlight (Portal)<br />SQLCMD – can also be used<br />SSIS – can also be used<br />SSRS/SSIS/SSAS – w/SQL Azure as source data – use R2 versions<br />Demo – Connect via tools<br />
  16. 16. SSMS 2008 R2 – Cloud vs. On Premise<br />
  17. 17. Query Optimizer and Client Statistics can be used with SQL Azure data<br />
  18. 18. Feature not yet implemented<br />Physical layer – Microsoft handles it<br />Commodity vs. Business <br />Multi-tenant<br />We must play nice together<br />Compatibility Overview<br />
  19. 19. Maximum single database size is 50GB<br />Database size calculation <br />Includes: primary replica data, objects and indexes<br />Does NOT include: logs, master database, system tables, server catalogs or additional replicas<br />Announced CTP support for auto-partitioning & fan-out queries (Federation) <br />Currently must handle partitioning logic within the application<br />Also called Database ‘sharding’<br />Sharding Utility, using TPL at http://enzosqlshard.codeplex.com/<br />Database Size Limits<br />
  20. 20. Compatibility <br />In Scope<br /><ul><li> Tables, indexes and views
  21. 21. w/ clustered indices
  22. 22. Stored Procedures
  23. 23. Triggers
  24. 24. Constraints
  25. 25. Table variables
  26. 26. Session temp tables
  27. 27. Spatial datatype</li></ul>Out of Scope<br /><ul><li> Distributed Transactions
  28. 28. Distributed Query
  29. 29. CLR
  30. 30. Service Broker
  31. 31. Physical server or catalog DDL and views</li></li></ul><li>Tables (joins) , Views , Stored Procedures, Triggers<br />Indices <br />Index Management<br />Statistics Management<br />Spatial data<br />Local Transactions<br />Supported T-SQL <br /><ul><li>T-SQL elements
  32. 32. Reserved keywords
  33. 33. Create/drop databases
  34. 34. Create/alter/drop tables
  35. 35. Create/alter/drop users and logins
  36. 36. Constants, Constraints, Cursors, Local temporary tables
  37. 37. Table Variables</li></li></ul><li>CLR<br />Database file placement<br />Database mirroring<br />Distributed queries<br />Distributed transactions<br />Filegroup management<br />Full Text Search<br />Unsupported T-SQL <br /><ul><li>Global temporary tables
  38. 38. SQL Server configuration options
  39. 39. SQL Server Service Broker
  40. 40. System tables
  41. 41. Profiler / Trace Flags</li></li></ul><li>Generating, then modifying, the SQL DDL script<br />Loading in the data (bcp, SSIS, etc…)<br />-OR-<br />SQL Azure Migration Wizard<br />http://sqlazuremw.codeplex.com<br />Demo – SQL Migration Wizard<br />
  42. 42. SQL Migration Wizard<br />
  43. 43. What Could Go Wrong?<br />
  44. 44. Progress!<br />
  45. 45. Success!<br />
  46. 46. Remove unsupported features, such as…<br />Migrating By Hand<br /><ul><li>USE DATABASE
  47. 47. ON PRIMARY (Filegroups)
  48. 48. Extended Properties
  49. 49. NOT FOR REPLICATION
  50. 50. Various Index options (WITH)
  51. 51. Windows logins
  52. 52. Unsupported XML features
  53. 53. Remove DEFAULT NEWSEQUENTIALID()
  54. 54. Encrypted Stored Procedures
  55. 55. No Heap tables (all tables must have clustered indices)
  56. 56. UDTs</li></li></ul><li>3 month release cycle<br />Active CTPs at sqlazurelabs.com<br />Roadmap<br />
  57. 57. Added new Dynamic Management Views (DMVs) <br />Allows return of state information for health monitoring & performance tuning<br />sys.dm_exec_connections, _requests , _sessions, _tran_database_transactions, _active_transactions, _partition_stats<br />Added ability to move between Web or Business edition<br />ALTER DATABASE database_name { MODIFY (MAXSIZE = {1 | 10} GB) }<br />Increased idle session conn timeout (from 5 to 30 minutes)<br />Improves experience while using connection pooling and other interactive tools<br />Improved long running transaction algorithm <br />Allows import and export of much larger amounts of data without having to chunk your data <br />Added - Feb 2010<br />
  58. 58. Addedavailability in 20 more countries (now 41 total)<br />Complete list here <br />Started with 21 countries, now doubled<br />Addedsupport for MARS<br />Simplifies the design process<br />Added support for ALTER (rename) Database<br />Adds features found in RDMS to SQL Azure<br />Included support in Visual Studio 2010 to manage SQL Azure<br />Allows direct management of SQL Azure databases via Server Explorer<br />Also found in SQL Server Management Studio<br />Added new labs feature - sandbox<br />https://www.sqlazurelabs.com/<br />Added - April 2010<br />
  59. 59. Addedupper size limit of 50 GB<br />Available June 28, 2010<br />Initial discount on upgrading maximum size<br />Addedsupport for Spatial Data Types<br />Support for Geography & Geometry data types and queries<br />Support for HierarchyID data types (tree-like database structures)<br />Added support DataSync Service for SQL Azure<br />Initially available in CTP via sqlazurelabs.com<br />Announced SQL Server Web Manager <br />Web-based SQL Azure management tool<br />Initially available as CTP in summer 2010<br />Added Access 10 support for SQL Azure<br />Support from Office 2010 to SQL Azure<br />Added - June 2010<br />
  60. 60. Added Database copy capabilities<br />Same server or cross server<br />CREATE DATABASE DB2A AS COPY OF Server1.DB1A <br />Monitor via sys.dm_database_copies<br />Increased MSDN documentation for common programming scenarios (with code examples)<br />Enhanced Project Houston<br />Supported in multiple data centers<br />View and StoredProc designers added<br />Added - August 2010<br />
  61. 61. Improved Portal at sql.azure.com<br />Enhanced Houston (Silverlight) portal<br />Connected to main Azure portal<br />Announced Betas<br />SQL Azure Reporting Services<br />SQL Azure Federation<br />SQL Azure Data Sync v 2<br />Added - Nov 2010<br />
  62. 62. Opportunities and Futures<br />SQL Web Management and Administration (SWA)<br />Partitioning Utility in CTP soon (Federation)<br />Profiler-like traces / deadlock graphs<br />Geo-location and geo-redundancy<br />Distributed query<br />Security w/Active Directory, Windows Live ID, etc<br />Support for multiple levels of hardware and software isolation<br />BI features – SSRS, SSIS, SSAS<br />
  63. 63. What’s Your Idea?<br />
  64. 64. Second Hour = DEMOs<br />
  65. 65. Pricing<br />
  66. 66. Data Migration Tools<br />Wizards<br />SQL Azure Migration Wizard (CodePlex) – here<br />Migration Assistant for Access or for MySQL – here or here<br />Import/Export Wizard<br />Generate Script Wizard<br />Copy Database command<br />CREATE DATABASE DB2A AS COPY OF Server1.DB1A <br />Other Tools <br />SSIS <br />BCP<br />DataSync (CTP)<br />OData (CTP)<br />
  67. 67. COPY Database (same or different servers)<br />CREATE DATABASE destination_database_name AS COPY OF [source_server_name.]source_database_name<br />CREATE DATABASE Database2A AS COPY OF Server1.Database1A <br />Check the DMVs<br />Progress<br />History<br />Other DMVs<br />Database COPY and DEMO<br />
  68. 68. SQL Azure Data Sync Service <br /><ul><li>Scale-out read or read/write
  69. 69. Geo replication of data
  70. 70. Edge network data distribution
  71. 71. Content delivery networks</li></ul>SQL Azure<br />Sync Group<br />SQL Server<br />SQL Azure<br />On-Premises Applications<br />
  72. 72. Data Sync - Demo<br />
  73. 73. Table Order in Sync<br />
  74. 74. Tracking Objects Created<br /><ul><li>Tracking Tables
  75. 75. On Source / on Destination
  76. 76. Triggers
  77. 77. Stored Procedures</li></li></ul><li>OData Support (Labs) - Demo<br />Open Data Protocol<br />ATOM PUB <br />JSON <br />HTTP<br />https://www.sqlazurelabs.com<br />
  78. 78. Odata Query & Results<br />
  79. 79. Data-tier Application Components<br />Data-tier Application Component (DAC)<br />New unit of deployment for T-SQL apps<br />Supports Install, Uninstall, and in the future Upgrade and Repair<br />Contains developer intent as policies.<br />Data-tier Application Component<br />Future - DAC Deployment Profile<br />Deployment Requirements, Management Policies, Failover Policies<br />Unit of Deployment<br />Schema<br />LOGICAL<br />Tables, Views, Constraints, SProcs, UDFs,<br />PHYSICAL<br />Users, Logins, Indexes<br />
  80. 80. DAC Pack = Single unit (Package) for authoring, deploying, and managing the data-tier objects through the development lifecycle<br />Development Lifecycle (VS 2010) - editing DACs<br />Schema and DB Code Development, <br />Code Analyses, Deployment Policy Settings, <br />Schema Comparison and more…<br />Building DACs – the self contained database package <br />Management Lifecycle (SSMS 2008 R2) – managing DACs<br />Registering existing database as DACs<br />Deploying and Upgrading databases using DACs, <br />DAC (Data-tier Application) Packages<br />
  81. 81. DACPAC – DEMO in SSMS<br />In SSMS<br /><ul><li>Extract
  82. 82. Register
  83. 83. Monitor w/UCPs</li></ul>In VS 2010<br /><ul><li>Import
  84. 84. Create</li></li></ul><li>DACPAC – DEMO in VS<br />
  85. 85. Summary– Database Migration<br />
  86. 86. Custom applications<br />Can use Windows Azure – not required<br />Can connect via any client with valid connection string<br />Microsoft applications<br />Connectivity into Office applications<br />Excel, Excel PowerPivot, SharePoint, etc…<br />Connectivity into BI applications<br />SSRS, SSIS, SSAS<br />Application Integration<br />
  87. 87. Local and Cloud-Based<br />No SDK required – simply change connection string from local to cloud copy of DB<br />
  88. 88. Simple – just change the connection string!<br />All compatibility requirements must be met (T-SQL) in the DDL<br />Create destination DB schema and populate with data<br />Firewall rules set up via SQL Azure portal (test connectivity)<br />Nothing to install, no SDK required<br />SQL Azure application<br />
  89. 89. Show SQL Azure Reporting<br />
  90. 90. Office 2010 - DEMO<br />Report Builder<br />PowerPivot<br />
  91. 91.
  92. 92. SQL Server 2008 R2 Editions<br />
  93. 93. Windows Azure Platform –here<br />Windows Azure Platform Training Kit – here <br />MSDN Development Center – here <br />Team Blogs – SSDS and SQLAzure<br />Want to Know More?<br />
  94. 94. Lynn Langit<br />Blog: http://blogs.msdn.com/SoCalDevGal<br />Twitter: @llangit<br />Ike EllisBlog: http://EllisTeam.blogspot.comtwitter - @EllisTeam1<br />Contact Me<br />
  95. 95. TeachingKidsProgramming.org<br /><ul><li>Do a Recipe  Teach a Kid
  96. 96. Free Courseware (recipes)
  97. 97. Ages 10 ++
  98. 98. Microsoft SmallBasic</li>

×