Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Microsoft SQL Azure Enterprise Application Development

You're reading from   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
Product type Paperback
Published in Dec 2010
Publisher Packt
ISBN-13 9781849680806
Length 420 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Jayaram Krishnaswamy Jayaram Krishnaswamy
Author Profile Icon Jayaram Krishnaswamy
Jayaram Krishnaswamy
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Microsoft SQL Azure: Enterprise Application Development
Credits
About the Author
1. Acknowledgement
About the Reviewers
www.PacktPub.com
2. Preface
1. Cloud Computing and Microsoft Azure Services Platform FREE CHAPTER 2. SQL Azure Services 3. Working with SQL Azure Databases from Visual Studio 2008 4. SQL Azure Tools 5. Populating SQL Azure Databases 6. SSIS and SSRS Applications Using SQL Azure 7. Working with Windows Azure Hosting 8. Database Applications on Windows Azure Platform Accessing SQL Server Databases 9. Synchronizing SQL Azure 10. Recent Developments

Using SQL Server Management Objects (SMO) to connect to SQL Azure


For working with the SQL Server 2008, Microsoft has provided a collection of namespaces (SMO), which contain different classes, interfaces, and so on that help to programmatically manage the server. We will now use the elements of this namespace to access the SQL Azure server. This is a powerful tool, as it is based on the SQL Server API object model.

In the following steps, we will create a Windows Forms Application (even a console application can be used) and add references to the Server API that works with SMO and show how a connection can be established to SQL Azure.

  1. 1. Create a Windows Forms Application project (herein SmoSqlAzure) and to the default drag-and-drop a button.

  2. 2. Right-click on the References node and from the drop-down click on Add Reference....

  3. 3. The Add Reference window gets displayed, as shown in the following screenshot:

  4. 4. In the Add Reference window under .NET scroll down and add the following references...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime