Presentation is loading. Please wait.

Presentation is loading. Please wait.

Page 1 Programming SQL Azure Database Jeff Chu | 2010-6-25.

Similar presentations


Presentation on theme: "Page 1 Programming SQL Azure Database Jeff Chu | 2010-6-25."— Presentation transcript:

1 Page 1 Programming SQL Azure Database Jeff Chu | 2010-6-25

2 Page 2 Agenda SQL Azure Programming Model Database Management Database Migration Data Access Security

3 Page 3 SQL Azure Programming Model Happy developer! –SQL Azure support TDS! –Developers can use exist ADO.NET experience to connect and consume SQL Azure Database –JUST modify Connection String Only. Connection string can find on SQL Azure Management Console (http://sql.azure.com)

4 Page 4 SQL Azure Database Customer Value Props Self-provisioning and capacity on demand Symmetry w/ on-premises database platform Automatic high-availability and fault-tolerance Automated DB maintenance (infrastructure) Simple, flexible pricing – “pay as you grow” Browser MS Datacenter SOAP/REST HTTP/S SQL Azure Database (Windows Azure Compute) Windows Azure Compute T-SQL (TDS) App Code (ASP.NET) App Code (ASP.NET) SQL Server Reporting Server (on-premises) Astoria/REST - EDM HTTP/S - AD Federation (LiveId /.Net Svcs ACS) SQL Azure Database SQL Azure Database T-SQL (TDS) Relational database service SQL Server technology foundation Highly symmetrical Highly scaled Database “as a Service” – beyond hosting

5 Page 5 SQL Azure Programming Model Support data access technologies –ADO (for legacy application like VB6 or ASP) –ADO.NET (for.NET Framework Application) –ADO.NET Entity Framework –SQL Server Driver for PHP Support application types –Console application –Windows application –Web application –Cloud application

6 Page 6 Growing Up – 50GB Database Support Two SQL Azure Database SKUs: –Web Edition & Business Edition Historically: size == SKU –Editions: independent size ceilings and increments for usage based billing You create a Web or Business Edition database You specify (or modify) MAXSIZE –Web: MAXSIZE = 1 GB| 5 GB –Business: MAXSIZE = 10 | 20 | … | 50 –This is the size we will not let you grow beyond You will only be charged for the actual (peak) size of your database (in any one day)

7 Page 7 Migrating Database Planning your migration –All on Cloud –On-premises database with Cloud. Calculate size you need. –Web edition: 1, 5GB –Business edition: 10, 50GB Migration Tools –SQL Server 2008 Management Studio R2 –SQL Azure Migration Wizard (from Codeplex)

8 Page 8 SQL Azure Database Management SQL Server Management Tools –SSMS 2008 (must apply connection string) –SSMS 2008 R2 –SQL Server Command Utility (sqlcmd.exe) Visual Studio –2010 (built-in) –2008 with SQL Azure Explorer (from Codeplex)

9 Page 9 SQL Azure Database Restrictions Support Features –Basic Programming Constants, Constraints, Temporary Tables –Database Indexes –Database Objects Stored Procedure Views User-Defined Functions (UDFs) Tables Triggers –Transact-SQL elements not related on system management.

10 Page 10 SQL Azure Database Restrictions Unsupport Features –SQL CLR –Database physical file allocation and groups. –Database Mirroring. –Distributed transaction and query. –Server-level temporary table. –SQL Server Configuration –SQL Server Service Broker –System-level tables. –Tracing Flags.

11 Page 11 SQL Azure Database Restrictions SQL Azure Server –Support SQL Server Authentication only. –master database Accessible only with administrator (like “sa”) Create database Create security login account Just expose some system views only –User’s database Grant access rights by administrator

12 Page 12 SQL Azure Security Administrator –Server-level principal (sa) Security Group –dbmanager: Manipulate database and objects. –loginmanager: Manipulate security logins Create login –Create with Server-level principal or login with loginmanager, and connected to master database. Firewall –Restrict client with IP list.

13 Page 13 Show time for you!

14 Page 14 References SQL Azure Documentation –http://msdn.microsoft.com/en-us/library/ee336279.aspxhttp://msdn.microsoft.com/en-us/library/ee336279.aspx PDC 2009 SQL Azure Sessions –SVC12: SQL Azure Database: Under the hood –SVC06: Scale-out Web Application with SQL Azure Database Tech.Ed 2010 North America SQL Azure Sessions –DAT09: What’s new in SQL Azure Database 邊做邊學 Windows Azure: SQL Azure 系列文章 –http://msdn.microsoft.com/zh-tw/azure/ee939353.aspxhttp://msdn.microsoft.com/zh-tw/azure/ee939353.aspx –http://msdn.microsoft.com/zh-tw/azure/ee959242.aspxhttp://msdn.microsoft.com/zh-tw/azure/ee959242.aspx –http://msdn.microsoft.com/zh-tw/azure/ff429363.aspx http://msdn.microsoft.com/zh-tw/azure/ff429363.aspx


Download ppt "Page 1 Programming SQL Azure Database Jeff Chu | 2010-6-25."

Similar presentations


Ads by Google