• No results found

March Lynn Langit twitter

N/A
N/A
Protected

Academic year: 2021

Share "March Lynn Langit twitter"

Copied!
51
0
0

Loading.... (view fulltext now)

Full text

(1)

Lynn Langit http://blogs.msdn.com/SoCalDevGal twitter - @llangit

(2)

Windows Azure Platform

Compute: Virtualized compute environment

Storage: Durable, scalable, & available storage

Management: Automated, model-driven management

Database: Relational processing for

structured/unstructured data – Data Marketplace

Service Bus: General purpose application bus

(3)

Data Storage Choices

Res

ou

rc

es

Dedicated Shared

Low

“Friction”/Control

High

SQL Azure (RDBMS) Hosted

On-premise

Windows Azure Storage

(4)

Application Topologies

Application/ Browser App Code (ASP.NET ) App Code (ASP.NET) T S Q L T DS SQL Azure Windows Azure Code Near

App code/ Tools

SQL Azure Code Far Hybrid Da ta S y nc SQL Azure

App code/ Tools

App Code (ASP.NET ) App Code (ASP.NET) T -S Q L / T DS T S Q L T DS Windows Azure

(5)

Database Replicas

Replica 1 Replica 2 Replica 3 DB

(6)

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 replicated with HA “out of box” – Transparent failover in case of failure

– Load balancing of data to ensure SLA

(7)
(8)
(9)

Demo

- Portal for Database

Management

(10)

Service Provisioning Model

• Each account has zero or more servers

– Azure wide, provisioned in a common portal – Billing instrument

• Each server has one or more databases

– Contains metadata about the databases and usage – Unit of authentication

– Unit of Geo-location

– Generated DNS based name

• Each database has standard SQL objects

– Unit of consistency – Unit of multi-tenancy

– Contains Users, Tables, Views, Indices, etc. – Most granular unit of billing

Account

Server

(11)

SQL Azure Database Access

Web Portal

Your App

(12)

Connection Model

• Use ADO.NET, ODBC, PHP (NOT OLE DB)

– Client libraries pre-installed in Azure roles – Support for ASP.NET controls

• Clients connect directly to a database

– Cannot hop across DBs (no USE)

– May need to include <login>@<server>

– Use familiar tools (sqlcmd, osql, SSMS, etc) – Use connection pooling for efficiency

• SSMS 2008 R2 can connect

(13)

Demo

– Connect via tools

• Web Client – Silverlight (Portal) • SSMS 2008 R2

• VS2010/LightSwitch • SQLCMD

• SSIS

• SSRS/SSIS/SSAS

– w/SQL Azure as source data – use R2 versions

(14)
(15)

Query Optimizer and Client Statistics can be used with SQL Azure data

(16)
(17)

Compatibility Overview

• Feature not yet implemented

• Physical layer – Microsoft handles it

– Commodity vs. Business

• Multi-tenant

(18)

Database Size Limits

• Maximum single database size is 50GB • Database size calculation

– Includes: primary replica data, objects and indexes

– Does NOT include: logs, master database, system tables, server catalogs or additional replicas

• Announced CTP support for auto-partitioning & fan-out queries (Federation)

– Currently must handle partitioning logic within the application – Also called Database „sharding‟

– Sharding Utility, using TPL at

(19)

Compatibility

In Scope

• Tables, indexes and views • w/ clustered indices • Stored Procedures • Triggers • Constraints • Table variables

• Session temp tables • Spatial datatype Out of Scope • Distributed Transactions • Distributed Query • CLR • Service Broker

• Physical server or catalog DDL and views

(20)

Supported T-SQL

• Tables (joins) ,

Views , Stored

Procedures,

Triggers

• Indices

– Index Management

– Statistics

Management

• Spatial data

• Local Transactions

 T-SQL elements  Reserved keywords  Create/drop databases  Create/alter/drop tables  Create/alter/drop users and logins  Constants, Constraints, Cursors, Local temporary tables  Table Variables

(21)

Unsupported T-SQL

• CLR

• Database file

placement

• Database mirroring

• Distributed queries

• Distributed

transactions

• Filegroup

management

• Full Text Search

 Global temporary tables

 SQL Server configuration options

 SQL Server Service Broker

 System tables

(22)

Demo

– SQL Migration Wizard

• Generating, then modifying, the SQL DDL script • Loading in the data (bcp, SSIS, etc.)

• SQL Azure Migration Wizard

– http://sqlazuremw.codeplex.com

(23)
(24)
(25)
(26)

Data Migration Tools

• Wizards

– SQL Azure Migration Wizard (CodePlex) – here

– Migration Assistant for Access or for MySQL – here or here

– Import/Export Wizard – Generate Script Wizard

• Copy Database command

• CREATE DATABASE DB2A AS COPY OF Server1.DB1A

– Other Tools – SSIS – BCP – DACPAC enhanced (CTP) – DataSync (CTP) – OData (CTP)

(27)

SQL Azure Data Sync

• Elastic Scale

– Service scales as resources requirements grow

• No-Code Sync Configuration

– Easily define data to be synchronized

• Schedule Sync

– Choose how often data is synchronized

• Conflict Handling

– Handle issues where same data is changed in multiple locations

• Logging and Monitoring

– Administration capabilities for tracking data and monitoring potential issues

(28)
(29)

SQL Azure Data Sync CTP3

• New UX integrated with the Windows Azure management portal.

• Ability to select a subset of columns to sync as well as to specify a filter so that only a subset of rows are synced. • Ability to make certain schema

changes to the database being

synced without having to re-initialize the sync group and re-sync the data. • Conflict resolution policy can be

specified.

(30)

SQL Azure - Import/Export

DAC v2.0 adds two new DAC services: import and export

Import and export services let you deploy & extract both schema & data from a single file identified with the “.bacpac” extension

(31)

OData Support

ATOM PUB

JSON

HTTP

https://www.sqlazurelabs.com

(32)
(33)

Data-tier Application Components

New unit of deployment for T-SQL apps

Supports Install, Uninstall, and in the future Upgrade and Repair

Contains developer intent as policies.

Data-tier Application Component

Schema LOGICAL Tables, Views, Constraints, SProcs, UDFs, PHYSICAL Users, Logins, Indexes

Future - DAC Deployment Profile

Deployment Requirements, Management Policies, Failover Policies

Un it of De pl oym en t

(34)

DAC (Data-tier Application) Packages

• Single unit (Package) for authoring, deploying, and managing the data-tier objects through the project lifecycle

• Development Lifecycle (VS 2010) - editing DACs – Schema and DB Code Development,

– Code Analyses, Deployment Policy Settings, – Schema Comparison and more…

– Building DACs – the self contained database package • Management Lifecycle (SSMS 2008 R2) – managing DACs

– Registering existing database as DACs

(35)

DACPAC in SSMS

In SSMS • Extract • Register • Monitor w/UCPs In VS 2010 • Import • Create

(36)
(37)

Application Integration

• Custom applications

– Can use Windows Azure – not required

– Can connect via any client with valid

connection string

• Microsoft applications

– Connectivity into Office applications

• Excel, Excel PowerPivot, SharePoint, etc…

– Connectivity into BI applications

(38)

Local and Cloud-Based

No SDK required – simply change connection string from local to cloud copy of DB

(39)

SQL Azure application

• Simple – just change the connection string!

– All compatibility requirements must be met (T-SQL) in the DDL

– Create destination DB schema and populate with data – Firewall rules set up via SQL Azure portal (test

connectivity)

(40)

Microsoft Application Integration

• Office 2010

– Excel

– Excel Power Pivot – SharePoint

• SQL Server 2008

– SQL Server Reporting Services – Report Builder 3.0

– SQL Server Integration Services – SQL Server Analysis Services

• Visual Studio 2010

– Server Explorer – Entity Framework – DACPAC

• Windows Azure Marketplace DataMarket

(41)
(42)

Office 2010 -

DEMO

(43)
(44)

Database Engine Relational Data Management Replication Full Text Search Integration Services ETL Processing Data Profiling StreamInsight* Complex Event Processing Analysis Services Classic OLAP Data Management Data Mining PowerPivot* Self Service Analytics Reporting Services Managed Reporting Self Service Reporting Embedded Reporting Master Data Services* Master Data Management

(45)

Opportunities and Futures

• SQL Web Management and Administration (SWA) • Partitioning Utility in future CTP (Federation)

• Profiler-like traces / deadlock graphs • Geo-location and geo-redundancy • Distributed query

• Security w/Active Directory, Windows Live ID, etc

• Support for multiple levels of hardware and software isolation • BI features – SSRS, SSIS, SSAS

(46)
(47)
(48)

Pricing

Edition WEB BUSINESS Bandwidth

Max 1 GB $ 9.99 / month n/a 10 cents/GB in 15 cent/GB out *higher in Asia (see notes) Max 5 GB $ 49.95 / month n/a same Max 10 GB n/a $ 99.99 / month same Max 20 GB n/a $ 199.98 / month same Max 30 GB n/a $ 299.97 / month same Max 40 GB n/a $ 399.96 / month same Max 50 GB n/a $ 499.95 / month same

(49)

Want to Know More?

• SQL Azure Community – here

• Windows Azure Platform Training Kit – here

• MSDN Development Center – here

(50)

Contact Me

Lynn Langit

Blog: http://blogs.msdn.com/SoCalDevGal

Twitter: @llangit

(51)

References

Related documents

On the other hand, methylene blue which happens to have molecular weight of 319.85 g/mol has a slightly lower diffusion rate compared to potassium permanganate

The authors estimate that a real exchange rate appreciation of about 0.3 to 0.5 per cent is associated with a one per cent improvement in the terms of trade, while an appreciation

The studies with the naturally occurring linker region did not show a shift to the formation of readthrough product in the presence of uncharged tRNA, even at 10-fold molar

In addition to allowing for a correlation between the education equation and the residuals in the wage equations, we also expect individuals with a greater than average

Among the five enzymes, it was demonstrated that the majority of the shell+thickness related+polymorphic bands with strong intensity were generated from the

Leaders of the IFB and the Lawrence Police Department (LPD) reacted quickly, and by October, a full task force was in place, housed in Lawrence, and included two

The branched response in Figure 4 specifies that, after every execution of order , at least one of the tasks accepted or declined will eventually be executed.. How- ever, it is

This model used a master trainer [mental health expert with cognitive behaviour therapy (CBT) training and in-depth understanding of the THP] based in the UK, to train and supervise