Showing posts with label Windows Azure. Show all posts
Showing posts with label Windows Azure. Show all posts

Tuesday, November 3, 2009

How-To Access SQL Azure Data

There are several ways to incorporate SQL Azure in your applications, however there two application patterns to access the SQL Azure Data, there are accessing through
  1. On-Premises Applications
  2. Hosted Applications residing in Cloud

1. On-Premises Applications
In a traditional on-premise application, the application code and database are located in the same physical data center. SQL Azure and the Azure Services Platform offer many alternatives to that architecture. The following diagram demonstrates two generalized alternatives available for how your application can access data with SQL Azure.

In Scenario A on the left, your application code remains on the premises of your corporate data center, but the database resides in SQL Azure. Your application code uses client libraries to access your database(s) in SQL Azure. Client library transfers data using tabular data stream (TDS) over a secure sockets layer (SSL).

2. Hosted Applications residing in Cloud
In Scenario B on the right, your application code is hosted in the Windows Azure and your database resides in SQL Azure. Your application can use the same client libraries to access your database(s) in SQL Azure as are available in Scenario A. There are many different types of applications that you can host in the Windows Azure Platform.

The Scenario B client premises may represent an end user's Web browser that is used to access your Web application. The Scenario B client premises may also be a desktop or Silverlight application that uses the benefits of the Entity Data Model and the ADO.NET Data Services client to access your data that is hosted in SQL Azure.
For more information about the SQL Azure architecture, see SQL Azure Architecture Overview blog post.

Hosting Your Data in the Cloud
The appearance and functionality of your SQL Server database experience is unchanged when you use SQL Azure instead of an on-premise instance of SQL Server. There are some minor differences that include Transact-SQL changes and login management. More information will be posted in future blog posts.
When hosting only your data in the Microsoft data center, it is important to consider the network latency between SQL Azure and the on-premise servers running your application code. Network latency to SQL Azure is higher than it would be if the database were also on your premises and you may need to account for this in your application code.
One way to minimize the network latency of requests to the database is to additionally host your application in the Windows Azure Platform.

Hosting Your Application in the Cloud
Hosting applications in Windows Azure is optional. Based on your needs, you can migrate your applications to or from Windows Azure.
Hosting your application code in Windows Azure is beneficial to the performance of your application because it minimizes the network latency associated with your application's data requests to SQL Azure.
For example, you may decide to create a Web-based user interface in Windows Azure for your database application that is hosted in SQL Azure. In this scenario, the client code and data is hosted in the same physical data center, so network latency is minimal between the corresponding servers. Clients will still have to traverse the Internet to reach your database application, but the network traffic between the client code and data is much faster because those numerous data requests have a much shorter distance to travel.


Sunday, November 1, 2009

Getting Started with SQL Azure

There are 4 simple steps to get started with SQL Azure

  1. Download the Windows Azure Platform Training Kit : The Windows Azure Platform Training Kit includes a comprehensive set of technical content including samples, demos, hands-on labs, and presentations that are designed to help you learn how to use the Windows Azure platform. These labs cover Windows Azure, .NET Services, SQL Azure, and Live Services
  2. Create a new SQL Azure account and register for the CTP : The SQL Azure Database CTP is available for free. Click Here to create your account with your Live ID, and we will send you an invitation code. (Due to high demand for the SQL Azure Database CTP, there may be some delays in receiving your invitation codes as we onboard new participants.)
  3. Log in : Visit https://sql.azure.com/ and sign in with your Live ID, then enter your invitation code.
  4. Create your SQL Azure Server (and databases)

Saturday, October 31, 2009

Introduction to SQL Azure

Microsoft SQL Azure Database is a cloud-based relational database service built on SQL Server technologies. It provides a highly available, scalable, multi-tenant database service hosted by Microsoft in the cloud. SQL Azure Database helps to ease provisioning and deployment of multiple databases. Developers do not have to install, setup, patch or manage any software. High availability and fault tolerance is built-in and no physical administration is required. SQL Azure Database supports Transact-SQL(T-SQL). Customers can use existing knowledge in T-SQL development and a familiar relational data model for symmetry with existing on-premises databases. SQL Azure Database can help reduce costs by integrating with existing toolsets and providing symmetry with on-premises and cloud databases.

Uses of SQL Azure Database:

  • Build scalable, custom web applications, which is especially a need for small to mid-size businesses, hobbyist, and startups
  • Build packaged line-of-business applications, which is attractive to traditional, SaaS ISVs and custom developers
  • Build corporate departmental applications
  • Consolidate multiple data sources in the Cloud and enable secure access from multiple locations, desktop and/or devices

Benefits of SQL Azure Database:

  • No need to install or patch software or other physical administration
  • Automatic high availability and fault tolerance
  • Simple provisioning and deployment of multiple databases
  • Scale databases up or down based on business needs
    Multi-tenant
  • Integration with SQL Server and tooling including Visual Studio
  • Support for T-SQL based familiar relational database model

SQL Azure Database Features

  • Relational Database Management Services (RDBMS)
  • Creating, accessing and manipulating tables, views, indexes, roles, stored procedures, triggers, and functions
  • Execute complex queries and joins across multiple tables
  • Insert, Update, and Delete
  • Constraints
  • Transactions
  • Temp tables
  • Basic functions (aggregates, math, string, date/time)
  • A subset of the existing SQL Server built-in stored procedures and system views
  • Support for tracking billable metrics in real time and for historical analysis

Programmability

  • Managed ADO.NET data access
  • Native ODBC
  • Support for PHP

Tools