Download presentation
Presentation is loading. Please wait.
Published byVictor Baker Modified over 9 years ago
1
Windows Azure SQL Database and SQL Reporting for Developers Dr Greg Low Principal Mentor – SQL Down Under AZR221
3
Working with Windows Azure SQL Database Scaling out using Federations Scaling out using Data Sync Reporting
4
Isn't this just a hosted SQL database? Windows Azure SQL Database (was SQL Azure) SQL as a service Massively distributed cluster Based on commodity hardware Focus on logical vs physical design
5
Is my data secure? Security built-in Logical firewall DOS attack detection SSL connectivity Not yet available Encryption
6
Can I rely on my data being available? HA built-in Primary plus two replicas Near-instant failover Rolling upgrades only when all available Read -> Primary Write -> Quorum
7
Do I get my own SQL Server? Logical servers assigned to subscriptions Server = TDS endpoint at gateway Can be programmatically provisioned master database Different to on-premises version View for firewall rules
8
How big can my databases be? Web up to 5GB, Business up to 150GB Main difference is growth limit Pricing encourages multi-tenant Could be on different physical servers
9
Management Portal & Database Design/Query
10
Will this fix my performance issues? Probably not WASD is different to an on-premises server Important to understand what is offered and limitations SQL Server 2012 based engine (Quarterly updates) Commodity hardware Multi-tenanted architecture Latency
11
How do I avoid performance issues? Database needs appropriate design (no magic fix) Indexing Avoid fragmentation Architect for scale-out vs scale-up On-premises => buy enough hardware Azure => design for multi-DB, enough DBs Use async (non-blocking) design patterns
12
Is latency really an issue? Possibly significant in local region Need to Avoid chatty interfaces Minimize round trips Choose appropriate data centre (via testing not geography) Co-locate applications and data within DC
16
Management Studio and Latency
17
What tools can I use? Management Portal (manage servers) SQL Server Management Studio (SSMS) Use 2008 SP1 or later Database Manager (within portal) Design tables, edit table data Does not really compete with SSMS SQL Server Data Tools Perform local validation before deployment
18
How to I migrate by apps and data? Scripting options in SSMS Ensure WASD target Check for scripting issues Data-tier applications.dacpac and.bacpac files SQL Azure Migration Wizard SQL Server Integration Services bcp
19
Do I need to change my apps? Large subset of T-SQL supported Tables must have a clustered index Not all components supported Agent, Full-Text, Service Broker Dependencies, CLR Continuous improvements – recently added: MARS, Spatial
20
Database scripting
21
What if other apps don't play fair? WASD is not intended for high resource requirement apps Shared resources tempdb Worker threads Disk Network
22
How does Azure balance loads? Main load balancer (periodic) Balances utilization across all servers Swaps or moves workloads Reactive load balancer (as needed) Solves short term issues Fast solution to avoid throttling on hot machines
23
So what's this throttling thing? Throttling Service Protects systems based on actual vs safe loads Soft throttle => busiest databases only Hard throttle => all databases on server
25
How do I avoid throttling? Optimize database code Up-to-date statistics Minimal index fragmentation Monitor throttle causes Many hard throttles – check code & design Check DMVs (eg: sys.dm_exec_query_stats) Decode errors returned
27
Will my app stay connected? No But retry logic needed for on-premises systems anyway Design for an assumption of failure
28
Are there code examples? Entlib (via NuGet) Transient Fault Handling Application Block ReliableSqlConnection (connection + retry policy) Policy (count, count + timespan, etc) ExecuteNoQueryWithRetry Retrying event exposed ExecuteAction method can invoke LINQ
29
How do I backup and restore? COPY DATABASE Transactionally-consistent duplicate database Async operation & can be cross-server Import/Export wizard Uses Azure Storage Not transactionally-consistent Quiesce database first or use copy database
30
Can I point DB Scripts at WASD? Yes, but don't include data
31
MethodTime Execute against local server55 secs Execute against WASD directly1 hr 52 mins 13 secs Export bacpac from local server to Azure storage13 secs Import bacpac from Azure storage52 secs
32
Working with bacpac, storage and copy database
33
Working with Windows Azure SQL Database Scaling out using Federations Scaling out using Data Sync Reporting
34
intbigintvarbinary (900 bytes max)guid
35
Federated Distributed by key Contain data that is the reason for federation Reference Cloned to each federation member Typically small lookup data Central Created in federation root Typically low-traffic objects eg: metadata
37
Federations
39
Working with Windows Azure SQL Database Scaling out using Federations Scaling out using Data Sync Reporting
40
Windows Azure SQL Database SQL Azure Database Hub On-premises SQL Server
42
Windows Azure SQL Database SQL Azure Database Hub On-premises SQL Server Agent Service
43
Deploy database to hub and clients Configure sync group Determine dataset contents & filtering Determine sync schedule Determine conflict resolution policy Install agent service on on-premises system Add all clients to topology and deploy topology
44
Data sync
45
Working with Windows Azure SQL Database Scaling out using Federations Scaling out using Data Sync Reporting
46
SSRS delivered as an Azure service Worker role in Azure Sticky gateway Primary target: embedded reporting in web apps Rapid provisioning Best to provision in same DC as SQL data
47
Report designer & RDL Deployment mechanisms Web services and URL access Report viewer control (2010) Item level permissions Plus: Built-in HA Elastic scale-out options SQL authentication only SSL only WASD data sources only Less: Report Builder, Schedules, Subscriptions, Custom Extensions, External Images SameDifferent
48
SQL Reporting
49
Windows Azure SQL Database is ready for business Windows Azure SQL Database enables new opportunities
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.