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 Azure Firewall API


As we learnt from Chapters 2, SQL Azure Services and Chapter 3, Working with SQL Azure Databases from Visual Studio 2008, SQL Azure Firewall is the main line of defense and mandatory for SQL Azure. The firewall is defined by a name, a start IP Address, and an End IP Address. These are stored in the master database of the SQL Server in the table sys.firewall_rules. In order to retrieve the firewall rules we need to connect to SQL Azure and retrieve the columns of the table sys.firewall_rules. These can be retrieved programmatically as shown in this Program.cs file of a C# console project:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
namespace GetFirewallRules
{
class Program
{
static void Main(string[] args)
{
String conStr="Data Source=<your server name>.database.windows.net;Initial Catalog=master;User ID=<your usrename>;Password=<your password>";
SqlConnection conn = new...
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 €18.99/month. Cancel anytime