Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Microsoft SQL Azure Enterprise Application Development
Microsoft SQL Azure Enterprise Application Development

Microsoft SQL Azure Enterprise Application Development: Moving business applications and data to the cloud can be a smooth operation when you use this practical guide. Learn to make the most of SQL Azure and acquire the knowledge to build enterprise-ready applications.

Arrow left icon
Profile Icon Jayaram Krishnaswamy
Arrow right icon
$9.99 $32.99
Full star icon Full star icon Full star icon Full star icon Empty star icon 4 (2 Ratings)
eBook Dec 2010 420 pages 1st Edition
eBook
$9.99 $32.99
Paperback
$54.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon Jayaram Krishnaswamy
Arrow right icon
$9.99 $32.99
Full star icon Full star icon Full star icon Full star icon Empty star icon 4 (2 Ratings)
eBook Dec 2010 420 pages 1st Edition
eBook
$9.99 $32.99
Paperback
$54.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$9.99 $32.99
Paperback
$54.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Microsoft SQL Azure Enterprise Application Development

Chapter 2. SQL Azure Services

In this chapter, you will learn about what SQL Azure Services are, and how different the SQL Azure Server is from a local, on-site SQL Server 2008. This chapter deals with the following:

  • Overview of SQL Azure Services

  • Accessing SQL Azure Services from the portal

  • Creating a user database and setting up a firewall

  • Connecting to SQL Azure from SQL Server Management Studio

  • Working with SQL Azure from SQL Server Management Studio

  • Basic administration of the database objects

  • Basic monitoring of the database

The practical elements of this chapter are presented following a step-by-step approach. The focus is on helping the administration of the server/databases in SQL Azure Services. In order to work with the practical elements, some familiarity with the use of SQL Server Management Studio is assumed. The recommended version of SQL Server Management Studio is the one that gets installed with SQL Server 2008 R2 November CTP (Presently SQL Server 2008 R2).

Overview of SQL Azure Services


SQL Azure is a database service in the cloud on Microsoft's Windows Azure platform well-suited for web facing database applications as well as a relational database in the cloud.

SQL Azure Services was briefly introduced in Chapter 1, Cloud Computing and Microsoft Azure Services Platform. The present version mostly deals with the component analogous to a database engine in a local, on-site SQL Server. Future enhancements will host the other services such as Integration Services, Reporting Services, Service Broker, and any other yet-to-be defined services. Although these services are not hosted in the cloud, they can leverage data on SQL Azure to provide support. SQL Server Integration Services can be used to a great advantage with SQL Azure for data movement, and highly interactive boardroom quality reports can be generated using SQL Azure as a backend server (Chapter 6, SSIS and SSRS Applications Using SQL Azure).

Infrastructure features

SQL Azure is designed...

Accessing SQL Azure Services from the portal


In Chapter 1, Cloud Computing and Microsoft Azure Services Platform, the procedure to access the Windows Azure Services was described, which allowed you to host applications on the Windows Azure platform. In a similar manner, you can also access the SQL Azure Services that allow you to create databases and firewall rules. Firewall rules provide the security blanket for your cloud-based resources. This allows you and only you, or users designated by you, from IP addresses specified by you, to access your cloud-based SQL Azure database from an external location.

First time access to SQL Azure from the portal

By completing the following steps, you will be able to access SQL Azure Services from the portal:

  1. 1. Browse to the following URL: http://windows.azure.com.

  2. 2. The Windows Live ID sign in page opens up as shown in the following screenshot. It is assumed that you have already created a Live ID. In case you have multiple Live IDs, make sure you use...

Creating a user database and setting up a firewall


Now, you will create a user database in SQL Azure and set up firewall rules so that you can access SQL Azure from your ground-based, on-site location. While creating a user database makes use of the SQL Azure portal, these can be done from your ground-based SSMS, or other utilities that support T-SQL. Database and firewall rules can also be programmatically created from Visual Studio 2008 SP1 or Visual Studio 2010 (Beta 2 as well as RC).

Creating a user database in the portal

As seen, when we accessed SQL Azure Services from the portal, the master database is created during the provisioning process in the portal and user databases can also be created in the portal.

SQL Azure presently provides creating two Types of databases, a web type of 1 GB and a business type of 10 GB. Each provisioned SQL Azure Server can have a total of 150 databases including the master.

Note

The February 17, 2010 update of SQL Azure SU1 (February 2010) now allows upgrading...

Connecting to SQL Azure from SQL Server Management Studio


The SQL Azure Portal can manage servers, databases, and firewall settings as seen earlier. However, if you want to work with the databases and/or create objects you need an external utility. SQL Server Management Studio R2 provides the ability to work with databases by providing T-SQL support. There are other tools to connect to SQL Azure. SQL Azure supports only a limited set of features that SQL Server 2008 is capable of as described earlier in this chapter and all these features can be used in SSMS once you are connected to SQL Azure Server.

Connecting to SQL Azure from SSMS

Connecting to SQL Azure from SSMS is like connecting to any of the local SQL servers. To do this, you will need to perform the following steps:

  1. 1. Open the SSMS (the version used here is the one that came with SQL Server 2008 R2 November CTP installation) from its shortcut in Start in the Windows 7 desktop.

  2. 2. The Connect to Server dialog box will pop up wherein...

Working with SQL Azure from SQL Server Management Studio


When you are connected to the SQL Azure Server from SSMS, you can work with the server objects as you would with local servers except that SQL Azure supports (presently) only a subset of the features supported by SQL Server 2008 R2 (November CTP). We will now review a number of features that are supported fully or partially.

Creating queries

Querying databases is one of the important tasks that you would do on a regular basis and the process of querying SQL Azure is no different from querying other databases except for some changes in the commands, as follows:

  1. 1. Click on Connect | Database Engine... toolbar item in SSMS to open the Connect to Server dialog.

  2. 2. Enter the credentials as before and click the Connect button.

  3. 3. This opens up the Object Explorer displaying the SQL Azure Server objects. As we saw earlier, there are two databases, master and Bluesky.

  4. 4. Click the New Query toolbar item, as shown in the following screenshot...

Basic administration of the database objects


While the administration of SQL Azure is similar to SQL Server 2008 R2, there are some differences as the strategy used for server management has changed. The security folder in the Object Explorer is your starting point for creating logins when you access SQL Server 2008. In SQL Azure, the server node in Object Explorer is mapped to several (one or more) physical computers at the datacenter(s). The object that is available for you in SQL Azure is the master. It is in the master that you create objects, which include databases, logins, and so on.

The securityadmin role in SQL Server 2008 R2 is replaced by the loginmanager (Administrative User) that you created in SQL Azure Portal (also known as the Security Principal) and he/she will be responsible for server level security for creating logins.

The dbmanager role in SQL Azure is akin to dbcreator role in an on-site SQL Server and this role can create a database when connected to the master and...

Basic monitoring of the database


Diagnosing SQL Server database-related performance problems whether they are related to databases, execution, or transaction, is best done using the related Dynamic Management Views (DMV), a subset of those available in an on-site server. A user must have the permission to monitor or review these DMVs. Here, you will grant the permission to the user DmvMonitor who has a login001 to Bluesky.

  1. 1. Connect to SQL Azure with Server-level credentials.

  2. 2. Create a New Query to connect to Bluesky and execute the following statement:

    /* login as Server-Level Principal and execute the
    query while connected to 'Bluesky'*/
    CREATE USER DmvMonitor FROM LOGIN login001
    
  3. 3. This creates the user DmvMonitor in Bluesky.

  4. 4. Grant DmvMontior the permission to view the DMV by executing the following statement:

    /*Grant permission to view DMV*/
    GRANT VIEW DATABASE STATE TO DmvMonitor;
    
  5. 5. Now that you have a user DmvMonitor with login login001 in Bluesky database, you can run queries...

Summary


In this chapter, we covered several aspects of SQL Azure Services beginning with provisioning of SQL Azure Server in the portal and later with related features such as setting up databases and firewalls; creating and administering SQL Azure databases; migration, summarizing synchronization, and monitoring of SQL Azure; troubleshooting and monitoring of databases.

Additionally, we focused on SQL Azure access using SQL Server Management, provisioning a server after accessing the portal for the first time; setting up firewall rules to allow on-site users access; creating user databases; running general to specific queries; creating users, logins and permissions; and monitoring SQL Azure usage, and so on.

In the next chapter, we will describe with examples, methods of accessing SQL Azure to create, modify, and manage database objects using both Client APIs and Server APIs. We will also describe the secure way of connecting to SQL Azure.

Left arrow icon Right arrow icon

Key benefits

  • Develop large scale enterprise applications using Microsoft SQL Azure
  • Understand how to use the various third party programs such as DB Artisan, RedGate, ToadSoft etc developed for SQL Azure
  • Master the exhaustive Data migration and Data Synchronization aspects of SQL Azure.
  • Includes SQL Azure projects in incubation and more recent developments including all 2010 updates

Description

SQL Azure is a database service in the cloud. Based on Microsoft’s Windows Azure platform, SQL Azure is well suited for web facing database applications. Are you interested in moving your business applications and data to the cloud but are not sure how to go about it? Look no further; this book covers all you ever wanted to know about taking your relational enterprise data to the cloud using SQL Azure. This book will show you how to manage SQL Azure using various tools and also guide you in developing enterprise applications and business intelligence solutions. It will take you through migration and synchronization scenarios with a variety of tools, help you in working with Microsoft technology still in incubation, and in leveraging hybrid applications that exist partially in the cloud and partially on the ground.This step-by-step tutorial begins by providing an overview of Cloud Computing, introducing you to the most significant Cloud Computing implementations. You will then learn the mechanics of signing up and obtaining an account on Microsoft Windows Azure and logging into the portal.The book then dives deep into SQL Azure, showing you how to provision a SQL Azure Server, and how to create/delete databases as well as set up Firewall rules so that you can access SQL Azure from tools/Client programs. It is then followed by details of how to access SQL Azure using Client and Server APIs.Other content includes, a comprehensive description of tools required to access SQL Azure and how to use them and how to populate and migrate SQL Azure databases using a variety of tools.Finally, the book will detail with examples, data-centric applications that leverage a mix of on-site data and Cloud based data, how to synchronize data and extend the applicability of SQL Azure data by disconnected applications on mobile media, and synchronize services for globally distributed data. After covering the topics of services which are in production, the book will then cover future developments as well as a complete update to SQL Azure at the time of writing this book.

Who is this book for?

If you are a .Net developer, an architect, or a DBA who wants to develop enterprise applications and projects and extend your on-site skills with SQL Azure, then this book is for you.This book does not assume experience in Windows Azure or SQL Azure, nor is a high level of competency in SQL Server or the .NET Framework and associated technology required. However, a basic understanding of Visual Studio, C#, VB, SQL Servers, XML, web and WCF is required. If you decide to work with SQL Azure, then this book will provide you with the most up to date and practical information.

What you will learn

  • An easy to understand briefing on Microsoft Windows Azure Platform Services
  • Connect to SQL Azure using Microsoft SQL Server Management Studio
  • Create and manipulate objects on SQL Azure using different tools
  • Master the different types of Cloud offerings
  • Access SQL Azure through best practices using Client and Server API‚Äôs in VB and C# and using hosted services with user authentication Windows Azure
  • Learn how to populate the SQL Azure database using various techniques
  • Create Business Intelligence Applications using SSIS and SSRS
  • Synchronize databases on SQL Azure with on-site enterprise and compact SQL Servers
  • Learn how to write an application to access on-site data from a cloud hosted service
  • Get a comprehensive briefing on various updates that have been made to SQL Azure and the projects still in incubation
  • Understand the future and evolving programs such as the Houston Project, OData Services, Sync Services, and more built to support SQL Azure and transform it into a global enterprise data platform

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Dec 09, 2010
Length: 420 pages
Edition : 1st
Language : English
ISBN-13 : 9781849680813
Vendor :
Microsoft
Category :
Languages :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Dec 09, 2010
Length: 420 pages
Edition : 1st
Language : English
ISBN-13 : 9781849680813
Vendor :
Microsoft
Category :
Languages :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 158.97
Microsoft SQL Azure Enterprise Application Development
$54.99
Microsoft Windows Azure Development Cookbook
$54.99
Microsoft Azure: Enterprise Application Development
$48.99
Total $ 158.97 Stars icon
Banner background image

Table of Contents

10 Chapters
Cloud Computing and Microsoft Azure Services Platform Chevron down icon Chevron up icon
SQL Azure Services Chevron down icon Chevron up icon
Working with SQL Azure Databases from Visual Studio 2008 Chevron down icon Chevron up icon
SQL Azure Tools Chevron down icon Chevron up icon
Populating SQL Azure Databases Chevron down icon Chevron up icon
SSIS and SSRS Applications Using SQL Azure Chevron down icon Chevron up icon
Working with Windows Azure Hosting Chevron down icon Chevron up icon
Database Applications on Windows Azure Platform Accessing SQL Server Databases Chevron down icon Chevron up icon
Synchronizing SQL Azure Chevron down icon Chevron up icon
Recent Developments Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
(2 Ratings)
5 star 0%
4 star 100%
3 star 0%
2 star 0%
1 star 0%
Dr.GUI, MSDN, retired Feb 07, 2011
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
First, I'm likely a tough reviewer having been a professional technical writer for Microsoft since the mid 1990's and still doing that occasionally. Second, I'm a pedagogue (ex-teacher for those that are vocabulary challenged) and tend to read stuff at several levels - including suitability for teaching or mentoring.The first question is what type of book is this? This book will be a useful book on my bookshelf because it touches enough area in sufficient depth to serve as a cookbook for first recipes. The problem is that it try to span too many target audiences and as a result does not make it in any area well.IS IT A COOKBOOK?The number of items covered and the crispness of the coverage suggests that it is. The problem is that if I compare it to the classic Cookbooks from O'Reilly, it is both too shallow and too sparse. It's more a collection of recipes clipped from `Women's Journal' (or should I say, Microsoft articles and blog posts?). There is a place for that, because it has a linear structure that wandering across microsoft.com lacks.IS IT AN ENTERPRISE BOOK?Definitely not - there was zero coverage of issues that would be of interest to a SQL Azure serious enterprise application. One key example: there is nothing about tuning indexes - and for SQL Azure that can be critical. I will give a simple example, this morning I tuned a single heavy used query that was looked like it should be run well, 4-6 indices on all of the tables involved etc. The Database Engine Tune Advisor did it magic and did a 94% improvement on it. For SQL Azure (because of billing) could mean the difference between a $1000/month billing and a $60/month billing. Wait a minute... would it be in Microsoft's Interest to provide easy tools to do this... it would lose $940 of monthly revenue (just loose change)....The simplest way to see the deficiency is to look at a book like APress'sPro SQL Server 2005 and see what is not touched upon. Looking at APress's offering Pro SQL Azure, I see chapters such as:Designing for High PerformanceSQL Azure Design ConsiderationsPerformance TuningThose essential enterprise topics are missing. QEDIS IT A "LEARNING SQL AZURE" BOOK?It likely comes closest to this but for the fact that there is very sparse guidance to the learner. The collection of recipes without guidance leaves may leave too many learners frustrated instead of assured by the last page.IS IT A VBNET, C# OR IS A PHP BOOK?It tries to do all three resulting in a thick tome that will only be partially read by most developers. Creating a tome for each language would likely be a better approach so the book would have greater depth - however, the real issue is how much time a book title starting with "Microsoft SQL Azure" should spend in any specific language? IMHO less than 20% of the book/chapters, ideally 10-15%.IS IT WORTH BUYING?If you are neither a beginner nor responsible for enterprise implementation on SQL Azure, I would say that it's definitely worth considering. You will likely do a lot of skimming of content and then read carefully the sections that are relevant to your existing style. It may serve well as a stepping stone tome but it's useful life is likely to be short but it would likely pay for itself by the time savings it provides.Next week, I will do a review of another one of PACKT's books - stay tune!See for [...] more details
Amazon Verified review Amazon
Saikumar V Pollachi Mar 29, 2011
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
The following chapters are covered in the book.Chapter 1: Cloud Computing and Microsoft Azure Services PlatformChapter 2: SQL Azure ServicesChapter 3: Working with SQL Azure Databases from Visual Studio 2008Chapter 4: SQL Azure ToolsChapter 5: Populating SQL Azure DatabasesChapter 6: SSIS and SSRS Applications Using SQL Azure 221 Merging sharded dataChapter 7: Working with Windows Azure HostingChapter 8: Database Applications on Windows Azure Platform Accessing SQL Server DatabasesChapter 9: Synchronizing SQL AzureChapter 10: Recent DevelopmentsAs you see the contents summary of the book, it covers many facets of the Azure domain - cloud computing with Azure platform, other cloud service provides, tools for SQL Azure, interacting with SQL Azure from Managment studio... I would recommend anyone beginning to learn Azure Platform and want to know more about SQL Azure can certainly read this book. Every chapter has good number of examples to learn and test.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.