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.

Real World Sql Azure


Published on

Slide deck from MSDN SQL Azure presentation given on March 3, 2010

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Real World Sql Azure

  1. 1. Real World SQL Azure<br />…and some other nifty stuff<br />James Johnson<br />Founder and President, Inland Empire .NET User’s Group<br />Microsoft MVP<br />e: t:@latringo<br /><br />
  2. 2. Founder and President of the Inland Empire .NET User’s Group<br />Microsoft MVP, Evangelist, Influencer, Software and Database Architect, Author, Coach, Facilitator, and Mentor<br />ADHD/ADD/OCD when it comes to new technology<br />Can’t stay away from the shiny new stuff.<br />Email:<br />Blog:<br />Twitter: @latringo<br />Who am I?<br />
  3. 3. Familiar SQL Server relational model<br />Uses existing APIs & tools<br />Friction free provisioning and reduced management<br />Built for the Cloud with availability and scale<br />Accessible to all from PHP, Ruby, and Java<br />What is SQL Azure<br />
  4. 4. Maximum single database size is currently 10GB<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 />V1 does not support auto-partitioning or fan-out queries<br />Must handle partitioning logic within the application<br />Special ConsiderationsDatabase Size<br />
  5. 5. Support common application patterns<br />Logical/policy based administration<br />Patterns work from SQL Server to SQL Azure<br />Multi-tenancy considerations<br />Throttling and load balancing<br />Limits on DB size, transaction duration<br />Compatibility Goals<br />
  6. 6. Compatibility for V1<br />In Scope<br /><ul><li> Tables, indexes and views
  7. 7. Requires clustered index
  8. 8. Stored Procedures
  9. 9. Triggers
  10. 10. Constraints
  11. 11. Table variables, session temp tables</li></ul>Out of Scope<br /><ul><li> Distributed Transactions
  12. 12. Distributed Query
  13. 13. CLR
  14. 14. Service Broker
  15. 15. Spatial
  16. 16. Physical server or catalog DDL and views</li></li></ul><li>Constants<br />Constraints<br />Cursors<br />Index management and rebuilding indexes<br />Local temporary tables<br />Reserved keywords<br />Stored procedures<br />Statistics management<br />Transactions<br />Supported T-SQL (v1)<br /><ul><li>Triggers
  17. 17. Tables, joins, and table vars
  18. 18. T-SQL elements
  19. 19. Create/drop databases
  20. 20. Create/alter/drop tables
  21. 21. Create/alter/drop users and logins
  22. 22. Views</li></li></ul><li>Unsupported T-SQL (v1)<br />CLR<br />Database file placement<br />Database mirroring<br />Distributed queries<br />Distributed transactions<br />Filegroup management<br />Full Text Search<br /><ul><li>Global temporary tables
  23. 23. Spatial data and indexes
  24. 24. SQL Server configuration options
  25. 25. SQL Server Service Broker
  26. 26. System tables
  27. 27. Trace Flags</li></li></ul><li>Connect via ADO.NET, ODBC, etc.<br />OLE DB is NOT supported<br />May need to include <login>@<server><br />Use familiar tools (sqlcmd, osql, SSMS, etc)<br />Current version of SSMS is not fully supported but it works<br />SSMS 2008 R2 CTP has connection capability<br /><br />Connecting to SQL Azure<br />
  28. 28. Connecting to SQL Azure with SSMS 2008 R2<br />Demo<br />
  29. 29. Since SQL Azure supports only a subset of features, some modifications need to be made<br />Migrating an existing schema<br /><ul><li>User Defined Data Types
  30. 30. Specifying Filegroups
  31. 31. Extended Properties
  32. 32. USE DATABASE
  34. 34. Various Index options
  35. 35. Windows logins
  36. 36. Unsupported XML features
  37. 37. Indices need to be clustered
  38. 38. Full list at
  39. 39.</li></li></ul><li>Generating, then modifying, the SQL script<br />Demo<br />
  40. 40. The SQL team is working on the issue<br />In the meantime…<br />SQL Azure Migration Wizard<br /><br />Ugh… that wasn’t pretty<br />
  41. 41. Using SQL Azure Migration Wizard<br />Demo<br />
  42. 42. Questions<br />
  43. 43. James Johnson<br />Email:<br />Blog:<br />Twitter: @latringo<br />Don’t forget to tip your wait staff<br />Thank you<br />