24 hours of sql pass - sql azure

38
Sponsored by: Professional Association for SQL Server Lynn Langit http://blogs.msdn.com/SoCa lDevGal twitter - @llangit DATA “on” An end-to-end solutions for working with custom Twitter Data Feeds using the Windows Azure Platform

Upload: lynn-langit

Post on 13-Jan-2015

2.115 views

Category:

Technology


3 download

DESCRIPTION

deck for 'Twitter Data on SQL Azure' presented March 2011

TRANSCRIPT

Page 1: 24 Hours of SQL Pass - SQL Azure

Sponsored by:

Professional Association for SQL Server

Lynn Langithttp://blogs.msdn.com/SoCalDevGal

twitter - @llangit

DATA “on”

An end-to-end solutions for working with custom Twitter Data Feeds using the Windows Azure

Platform

Page 2: 24 Hours of SQL Pass - SQL Azure

Windows Azure Platform

Compute: Virtualized compute environment

Storage: Durable, scalable, & available storage

Management: Automated, model-driven

management

Database: Relational processing and services for

structured/unstructured data – Data Marketplace

Service Bus: General purpose application bus

Access Control: Rules-driven, claims-based

access control

Page 3: 24 Hours of SQL Pass - SQL Azure

Windows Azure Platform

Page 4: 24 Hours of SQL Pass - SQL Azure

Data Storage ChoicesRe

sour

ces

Dedicated

Shared

Low HighControl

SQL Azure (RDBMS) Virtual DB serverResource governance @ LDB Security @ LDBAuto HA, Fault-ToleranceSelf-provisioningHigh RDMS compatibility

Hosted Hosted SQL Server or other Roll-your-own HA/DR/scale Security @ DB Server/OS

On-premise SQL Server or other s/w on-premise Resource governance @ machine Full h/w control – 100% compatibilityRoll your own HA/DR/scale

Windows Azure Storage

Tables Queues Blobs (also VMs)

Page 5: 24 Hours of SQL Pass - SQL Azure

Application Topologies

Application/ Browser

App Code

(ASP.NET)

App Code(ASP.NET)

TS

QL T

DS

SQL Azure

WindowsAzure

Code Near

App code/ Tools

SQL Azure

Code Far

Hybrid D

ata

Syn

c

SQL Azure

SQL Server App code/ Tools

App Code

(ASP.NET)

App Code(ASP.NET)

T-S

QL /

TD

S

TS

QL T

DS

WindowsAzure

Page 6: 24 Hours of SQL Pass - SQL Azure

• Setup Accounts– Twitter account / hashtag (#24HOP)– SQL Azure Server with one Database– SQL Azure Reporting CTP

• Use Tools– Azure portal – SQL Server 2008 R2 Tools

• SSMS on premise with SSRS / Report Builder 3.0• Business Intelligence Development Studio

– SQL Azure Migration Wizard (CodePlex)– Visual Studio 2010 Ultimate– Excel 2010 with Power Pivot

Development Process

Page 7: 24 Hours of SQL Pass - SQL Azure

Using SQL Azure Services

Power Pivot

Report Viewer Control

SQL Azure Reporting

SQL Azure

Twitter Data

Power Pivot

Report Viewer Control

SQL Server Reporting

SQL Server

Twitter Data

Page 8: 24 Hours of SQL Pass - SQL Azure

Getting the Twitter Data

• General API information - http://dev.twitter.com/• Search API examples - http://dev.twitter.com/doc/get/search

• Containing a hashtag - http://search.twitter.com/search.atom?q=%2324HOP• From a user – http://search.twitter.com/search.atom?q=from%3Llangit• Mentioning a User - http://search.twitter.com/search.atom?q=%40Llangit

• Refresh (get latest results – JSON syntax)• "refresh_url":"?since_id=9290798834&q=i"

• Consider adding a ‘login to Twitter button’• Required for public Twitter clients

Page 9: 24 Hours of SQL Pass - SQL Azure

SQL Azure Server Portal

Page 10: 24 Hours of SQL Pass - SQL Azure

SQL Portal for Database

Page 11: 24 Hours of SQL Pass - SQL Azure

• We used ADO.NET and ODBC (OLE DB n/a at this time)– Client libraries pre-installed in Azure roles– Support for ASP.NET controls

• Best practices for connecting– Connect directly to ONE database (no USE)– May need to include <login>@<server>– Encrypt login information– Use Retry logic (can use connection library) – Use connection pooling for efficiency

Connection Model

Page 12: 24 Hours of SQL Pass - SQL Azure

RDMS Features Used

• Tables, indexes and views• Stored Procedures• Triggers• Constraints• Table variables • Session temp tables• Spatial datatype

Page 13: 24 Hours of SQL Pass - SQL Azure

SSMS 2008 R2

Page 14: 24 Hours of SQL Pass - SQL Azure

SQL Migration Wizard

Page 15: 24 Hours of SQL Pass - SQL Azure

COPY Database Command

Page 16: 24 Hours of SQL Pass - SQL Azure

DacPac

Page 17: 24 Hours of SQL Pass - SQL Azure

SQL Azure Data Sync Service

• Scale-out read or read/write• Geo replication of data• Edge network data distribution• Content delivery networks• sqlazurelabs.com

Sync Group

SQL Azure

SQL Server

SQL Azure

On-Premises Applications

Page 18: 24 Hours of SQL Pass - SQL Azure

Data Sync - Demo

Page 19: 24 Hours of SQL Pass - SQL Azure

Table Order in Sync

Page 20: 24 Hours of SQL Pass - SQL Azure

Tracking Objects Created

• Tracking Tables• On Source / on Destination

• Triggers• Stored Procedures

Page 21: 24 Hours of SQL Pass - SQL Azure

OData Support (Labs)

ATOM PUB JSON HTTP

https://www.sqlazurelabs.com

Open Data Protocol

Page 22: 24 Hours of SQL Pass - SQL Azure

Odata Query & Results

Page 23: 24 Hours of SQL Pass - SQL Azure

• Microsoft applications– Connectivity into BI applications

• SSRS, SSIS, SSAS

– Connectivity into Office 2010 applications• Excel, Excel PowerPivot, SharePoint, etc…

• Custom applications– Can use Windows Azure – not required– Can connect via any client with valid connection string

Application Integration with SQL Azure

Page 24: 24 Hours of SQL Pass - SQL Azure

• BIDS SQL Server 2008 R2• Report Builder 3.0

Report Development

Page 25: 24 Hours of SQL Pass - SQL Azure

SQL Server Report Builder 3.0

Page 26: 24 Hours of SQL Pass - SQL Azure

SQL Server BIDS 2008 R2

Page 27: 24 Hours of SQL Pass - SQL Azure

SQL Azure Reporting CTP

Page 28: 24 Hours of SQL Pass - SQL Azure

• 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

Microsoft Application Integration

Page 29: 24 Hours of SQL Pass - SQL Azure

Tools – Visual Studio 2010

Report Viewer Control – ‘out of box’ or customized

Page 30: 24 Hours of SQL Pass - SQL Azure

• Two UX versions – WinForms or WebForms• Two processing modes – Local or Remote (Azure)• Pass credentials• Customize UX

Report Viewer Control

Page 31: 24 Hours of SQL Pass - SQL Azure

Report Viewer Control Customization

Page 32: 24 Hours of SQL Pass - SQL Azure

• Current Betas– SQL Azure Reporting Services– Odata– SQL Azure Data Sync v 1

• Other Future Betas– SQL Azure Data Sync v 2 – SQL Azure Integrations Services – SQL Azure Analysis Services– SQL Azure Federation

Future - SQL Azure CTPs

VOTE for the FUTUREhttp://www.mygreatwindowsazureidea.com/pages/34685-sql-azure-feature-voting

Page 33: 24 Hours of SQL Pass - SQL Azure

• Windows Azure Platform – here• Windows Azure Platform Training Kit – here • MSDN Development Center – here • Team Blogs – SQLAzure

Want to Know More?

Page 34: 24 Hours of SQL Pass - SQL Azure

Lynn LangitBlog: http://blogs.msdn.com/SoCalDevGal

Twitter: @llangit

Contact Information

Page 35: 24 Hours of SQL Pass - SQL Azure

Teaching High School Girls T-SQL• Dating Game Database• T-SQL queries – hour 1 (WHERE), hour 2 (JOIN)• Artifacts on CodePlex, can use SQL Azure to host

• http://datinggame.codeplex.com

Page 36: 24 Hours of SQL Pass - SQL Azure

TeachingKidsProgramming.org

• Do a Recipe Teach a Kid• Free Courseware (recipes)• Ages 10 ++• Microsoft SmallBasic

Page 37: 24 Hours of SQL Pass - SQL Azure

Thank you to our sponsor

Professional Association for SQL Server

Page 38: 24 Hours of SQL Pass - SQL Azure

May 11-13, Orlando, FL

Oct 11-14, Seattle, WA

Save 25%: Register by April 12th

www.sqlpass.org/sqlrally

Register by March31st: save 40% and have the chance to win a cruise to Alaska!

www.sqlpass.org/summit