Download presentation
Presentation is loading. Please wait.
1
Introduction to SQL Azure
Presenter Title Company
2
Session Objectives and Takeaways
Get up to speed on SQL Azure Learn about the architecture and cloud specific features of SQL Azure Demonstration of some core features in action Takeaways: SQL Azure lets you innovate faster because it’s a managed service that lets you scale on demand SQL Azure is uniquely positioned as an ideal data platform for Windows Azure applications
3
Notes (hidden) This version of the deck was built for the Windows Azure Platform Training Workshop hosted Dec-2010 in Redmond WA by the DPE Platform Evangelism Team The content is up to date as of SQL Azure Service Update 5 which shipped 22-Oct-2010
4
SQL Azure Database The first and only true database as a service
Subtitle color Managed Service Scale On Demand Innovate Faster Easy provisioning and deployment Auto high-availability and fault tolerance No need for server or VM administration Database utility; pay as you grow Business-ready SLAs Enable multi-tenant solutions World-wide presence Build cloud-based database solutions on consistent relational model Leverage existing skills through existing ecosystem of developer and management tools
5
Application Topologies
From Windows Azure From Outside Microsoft Datacenter From Windows Azure & Outside Microsoft Datacenter SQL Server App Code / Tools Application / Browser App Code / Tools SQL Azure Data Sync Microsoft Datacenter Microsoft Datacenter Microsoft Datacenter Windows Azure Windows Azure SQL Azure SQL Azure SQL Azure Code Near Code Far Hybrid
6
Architecture Shared infrastructure at SQL database and below
Request routing, security and isolation Scalable HA technology provides the glue Automatic replication and failover Provisioning, metering and billing infrastructure
7
! Database Replicas Single Primary DB Single Database
Multiple Replicas Replica 1 Single Primary Replica 2 DB Replica 3 Replica 4
8
Behind the Scenes of SQL Azure
Apps use standard SQL client libraries: ODBC, ADO.Net, PHP, … Application Internet Load balancer forwards ‘sticky’ sessions to TDS protocol tier TDS (tcp) LB Security Boundary TDS (tcp) Gateway Gateway: TDS protocol gateway, enforces AUTHN/AUTHZ policy; proxy to backend SQL TDS (tcp) SQL SQL SQL SQL SQL SQL Scalability and Availability: Fabric, Failover, Replication, and Load balancing
9
Service Provisioning Model
Account Each account has zero or more logical servers Provisioned via a common portal Establishes a billing instrument Each logical server has one or more databases Contains metadata about database & usage Unit of authentication, geo-location, billing, reporting Generated DNS-based name Each database has standard SQL objects Users, Tables, Views, Indices, etc Unit of consistency Server Database
10
Working With SQL Azure
11
Connection Model SQL Azure exposes native SQL Server TDS protocol
Use existing client libraries ADO.NET, ODBC, PHP Client libraries pre-installed in Windows Azure roles Support for ASP.NET controls Applications connect directly to a database Cannot hop across DBs (no USE)
12
Connecting to SQL Azure
SQL Azure connection strings follow normal SQL syntax Applications connect directly to a database “Initial Catalog = <db>” in connection string No support for context switching (no USE <db>) Encryption security Set Encrypt = True, only SSL connections are supported TrustServerCertificate = False, avoid Man-In-The-Middle-Attack! Format of username for authentication: ADO.Net: Data Source=server.database.windows.net; User Setup your firewall rules first!
13
Logical vs. Physical Administration
SQL Azure focus on logical administration Schema creation and management Query optimization Security management (Logins, Users, Roles) Service handles physical management Automatically provides HA “out of box” Transparent failover in case of failure Load balancing of data to ensure SLA DBA role places more focus on logical management
14
Support existing and new forms of deployment
Deploy via T-SQL scripts Support for SQL Server Data-Tier Applications (DAC) feature DACPAC is unit of deployment Cloud or on-premise is a deployment time choice Create Logical Server in same region as Windows Azure Affinity Group for code-near architecture Support existing and new forms of deployment
15
Security model is compatible with on-premise SQL
Uses regular SQL security model Authenticate logins, map to users and roles Authorize users and roles to SQL objects Support for standard SQL Auth logins Username + password Security model is compatible with on-premise SQL
16
Presenter Title Company
demo Deploying and Managing SQL Azure Databases with Visual Studio 2010 Data-tier Applications Presenter Title Company
17
SQL Azure Compatibility
Currently Supported Not Currently Supported Tables, indexes and views Stored Procedures Triggers Constraints Table variables, session temp tables (#t) Spatial types, HierarchyId Data Types XML, Sparse Columns, Filestream Partitions Full-text indexes SQL-CLR Tables require clustered indexes
18
Database Editions Two SQL Azure Database SKUs: Web & Business
Web Edition: 1 $9.99/month | 5 $49.95/month Business Edition: Up to 50 $99.99/10 GB/month 10 $99.99 | 20 $ | 30 $ | 40 $ | 50 $499.95 You specify Web or Business Edition Web: EDITION = web Business: EDITION = business You specify MAXSIZE Web: MAXSIZE = 1GB | 5GB Business: MAXSIZE = 10GB | 20GB | 30GB | 40GB | 50GB This is the maximum size we will not let you grow beyond You will only be charged for the actual peak size in any one day rounded up For example, a 3.4 GB Web Edition will be charged 5GB rate. CREATE DATABASE foo1 (EDITION='business', MAXSIZE=50GB); CREATE DATABASE foo2 (EDITION='business', MAXSIZE=30GB); ALTER DATABASE foo2 MODIFY (EDITION='web', MAXSIZE=5GB); Business Edition Up to 50 GB 10 GB increments Web Edition 1 GB or 5 GB
19
Summary SQL Azure provides a highly available cloud database service.
Managed Service Scale On Demand Innovate Faster
20
© 2010 Microsoft Corporation. All rights reserved
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.