codestock june 26th sds demo

38
Aaron Stanley King SQL Data Services June 26 th , 2009

Upload: aaron-king

Post on 29-Nov-2014

862 views

Category:

Technology


1 download

DESCRIPTION

Organizations often face challenges of managing data across several platforms and with often off-line users. SQL Server Data Services provides a easy means to tackle complicated data syncing scenarios. This talk will focus on the benefits, features, object model and ease of use of SQL Server Data Services. Learn how your projects can benefit from a hosted data storage and query processing service. See by example how to design your program to use SQL Server Data Services.

TRANSCRIPT

Page 1: CodeStock June 26th SDS Demo

Aaron Stanley KingSQL Data Services

June 26th, 2009

Page 2: CodeStock June 26th SDS Demo

Microsoft SQL Data Services:

Page 3: CodeStock June 26th SDS Demo

Azure™ Services Platform:

Page 4: CodeStock June 26th SDS Demo

•Benefits of SDS•Features of SDS•SDS object model•SSDS Explorer•Demos, Demos, Demos!•How to query in SDS•More Demos!•Recent News•SDS Future•Questions and Answers•BASE vs. ACID ( time permitting )•Don’t you just love CTP? ( time permitting )

Our Goals for Today

Page 5: CodeStock June 26th SDS Demo

“SQL Data Services is a scalable and cost-effective on-demand data storage and query processing service. SDS is a hosted application build on robust Microsoft SQL Server database and Windows Server technologies.”

What is SDS?

Page 6: CodeStock June 26th SDS Demo

SDS is your data hosted by Microsoft with a strong service level agreement (SLA). The SLA not only ensures high availability but also performance and protection.

What is SDS really?

Page 7: CodeStock June 26th SDS Demo

Benefits of SQL Data Services

Page 8: CodeStock June 26th SDS Demo

Robust SQL Server support

“SDS is built on robust SQL Server database technologies.Therefore, it benefits from the advantages of SQL Server,which is a broad data platform that can handle all types ofdata, from creation to archival.”

Page 9: CodeStock June 26th SDS Demo

Ease of application development

“SDS facilitates application development. It uses Web-basedapplication programming interfaces (APIs), which support fasterdevelopment of Windows applications. SDS uses protocols suchas REST and SOAP with XML to communicatewith applications. Its flexible datamodel supports any programminglanguage.”

Page 10: CodeStock June 26th SDS Demo

Scalability

“The SDS database structure is flexible and scales according tobusiness needs. The service is supported by multiple servers.Therefore, it has the ability to provide any required storage capacity. Also, there is no time delay due to server provisioning. The data is partitionedto meet these requirements.”

Page 11: CodeStock June 26th SDS Demo

Availability

“Because SDS is accessible via the Internet, it ensures the availability of data to users in any geographic location. Further, SDS uses enterprise-grade hardware and program code, which are optimized for high throughput.”

Page 12: CodeStock June 26th SDS Demo

Security

“SDS provides organizations with secure data access and confidentiality. It is built on a relational database architecture that includes data protection. With SDS, multiple copies of data that you create or modify are stored across geographically distributed data centers. This ensures thesafety of your data in the event of anydisaster.”

Page 13: CodeStock June 26th SDS Demo

Strong SLA

“SDS provides you with a strong SLA that assures high availability, guaranteed performance, data protection, compliance, enterprise-level security features, and real-time mirrored database replication.”

Page 14: CodeStock June 26th SDS Demo

Flexible data storage

“You can upload and query structured data, semi-structured data, and unstructured data. You can associate entities with large unstructured data objects called binary large objects (BLOBs). These BLOBs can be accessed through a URL.”

Page 15: CodeStock June 26th SDS Demo

Benefits of SDS•Robust SQL Server support•Ease of application development•Scalability•Availability•Security•Strong SLA•Flexible data storage

Page 16: CodeStock June 26th SDS Demo

WEB-base APIs facilitate faster development of Windows applications.

SDS provides UNLIMITED data storage capacity.

SDS uses a PAY-AS-YOU-GROW pricing strategy.

SDS supports encryption through SSL.

Features of SDS

Page 17: CodeStock June 26th SDS Demo

SDS• Anytime from Any place• Failure of one server will

not impact performance• Unlimited amount of data

SQL Server• On-premise data platform• Single point of failure• Data is restricted by the

software and hardware

SDS vs. SQL Server

Page 18: CodeStock June 26th SDS Demo

You will discover:

◦ The ACE concept ( Yes, I know )◦ Uniform Resource Identifiers (URIs)◦ Authorities◦ Containers◦ Entities◦ Entity properties◦ SQL Data Services RDBMS Model◦ Recent News◦ BASE vs. ACID

SDS Object Model

Page 19: CodeStock June 26th SDS Demo

Type system is W3 Xml Schema string boolean dateTime decimal base64Binary

+ Blob

Page 20: CodeStock June 26th SDS Demo

The ACE concept

Authorities Containers Entities

Page 21: CodeStock June 26th SDS Demo

Authority

<s:Authority xmlns:s="http://schemas.microsoft.com/sitka/2008/03/"> <s:Id>heroes</s:Id></s:Authority>

Page 22: CodeStock June 26th SDS Demo

Container

<s:Container xmlns:s="http://schemas.microsoft.com/sitka/2008/03/"> <s:Id>people</s:Id></s:Container>

Page 23: CodeStock June 26th SDS Demo

Entities<Entity xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:s="http://schemas.microsoft.com/sitka/2008/03/"> <s:Id>id234985798</s:Id> <kind xsi:type='x:string'>customer</kind> <firstname xsi:type='x:string'>Jens</firstname> <surname xsi:type='x:dateTime'>Jensen</surname> <status xsi:type='x:string'>Gold member<status/> </Entity>

Page 24: CodeStock June 26th SDS Demo

EntitiesOr

<customer xmlns:s='http://schemas.microsoft.com/sitka/2008/03/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:x='http://www.w3.org/2001/XMLSchema' > <s:Id>id234985798</s:Id> <kind xsi:type='x:string'>customer</kind> <firstname xsi:type='x:string'>Jens</firstname> <surname xsi:type='x:dateTime'>Jensen</surname> <status xsi:type='x:string'>Gold member<status/> </customer>

Page 25: CodeStock June 26th SDS Demo

SSDS ExplorerC:\Program Files\Microsoft SQL Server Data Services SDK\SsdsExplorer.exe

SELECT | INSERT | UPDATE / INSERT | DELETE

Page 26: CodeStock June 26th SDS Demo

How do I query SDS???https://<authority-id>.data.database.windows.net/v1/<container-id>/<entity-id>

Comparison Operators>, >=, <, <=, ==, !=

Logical operators&& (and), || (or),! (not)

from e in entities select e

from e in entities where e.<property> == \“<value>\" select e

Syntax difference - mandatory system entity metadata vs entity properties:from e in entities where e.Id == "id234985798" select e

orfrom e in entities where e["firstname"] == "Jens" select e

Page 27: CodeStock June 26th SDS Demo

How do I query SDS???Ofkind():

from e in entities.OfKind(”customer”) select e

Take(): (from e in entities where e[“firstname”] == “Jens" select e).Take(10)

Take(from e in entities.OfKind(“customer“) select e, 10) Join support:

from c in entities.OfKind(“customer“) where c[“firstname"] == “Jens" from o in entities.OfKind(“order“) where o[“customerId"] == c.Id select o

Page 28: CodeStock June 26th SDS Demo

Demohttps://comics.data.database.windows.net/v1/Heroes

from e in entities where e["Team"] == "Justice League of America" select e

https://comics.data.database.windows.net/v1/Heroes/10

from e in entities where e["Team"] == "Justice League of America" && e["Location"] == "New York City" select e

https://comics.data.database.windows.net/v1/Villains

from h in entities where h["Location"] == “Gotham City" from v in entities where v["Name"] == h["MainVillains"] select v

Page 29: CodeStock June 26th SDS Demo

Demohttps://heroes.data.database.windows.net/v1/people

from h in entities where h.Kind == "Hero" where h["Location"] == "New York City" from v in entities where v.Kind == "Villain" where v["Name"] == h["MainVillain"] select v

Page 30: CodeStock June 26th SDS Demo

Recent News?

Page 31: CodeStock June 26th SDS Demo

On March 10th, Microsoft announced the details of the plans to accelerate the delivery of core relational database features as part of SDS. They are phasing our ACE and the current model for a more direct interface to TDS ( Tabular Data Stream ).

This means symmetric SQL Server functionality and behavior combined with compatibility with the existing tools you are familiar with.

Tables?...CheckStored Procedures?...CheckTriggers?...CheckViews?...CheckIndexes?...CheckVisual Studio Compatibility?...CheckADO.Net Compatibility?...CheckODBC Compatibility?...Check

Recent News?

Page 32: CodeStock June 26th SDS Demo

SQL Data Services RDBMS Model

Page 33: CodeStock June 26th SDS Demo

SQL Services Future?

Database

Reference Data

Reporting

ETLData Mining

Data Sync

Page 34: CodeStock June 26th SDS Demo
Page 36: CodeStock June 26th SDS Demo

Is there a market for SDS?

Page 37: CodeStock June 26th SDS Demo

Questions and Answers http://social.msdn.microsoft.com/Forums/en-US/ssdsgetstarted Website - http://perptech.com Twitter – http://twitter.com/perpetualtech Phone – (317) 824-0393 Toll free – (800) 538-0453

Blog – http://aaronstanleyking.com Twitter – http://twitter.com/trendoid

Page 38: CodeStock June 26th SDS Demo

Basically Available, Soft state, Eventually consistent

vs.

Atomicity , Consistency, Isolation, Durability

BASE vs. ACID?