Create a Numbers Table in SQL Azure

[This article was contributed by the SQL Azure team.] Often you may require number table for various purposes like parsing a CSV file into a table, string manipulation, or finding missing identities (see example below), etc. Numbers tables are used to increase performance (by avoiding cursors) and simplify queries. Because SQL Azure requires all tables…


Compression for Speed and Cost Savings

[This article was contributed by the SQL Azure team.] SQL Azure doesn’t currently support page level or row level compression like the enterprise edition of SQL Server 2008. However, you can implement your own column level compression in your data access layer to take advantage of the performance and cost savings of compression. I will…


Creating a Bing Map Tile Server from Windows Azure

[This article was contributed by the SQL Azure team.] In this example application, I am going to build a Bing Maps tile server using Windows Azure that draws push pins on the tiles based on coordinates stored as spatial data in SQL Azure. Bing Maps allows you to draw over their maps with custom tiles;…


Using SQL Azure for Session State

[This article was contributed by the SQL Azure team.] Hypertext Transfer Protocol (HTTP) is a stateless protocol; the advantage of a stateless protocol is that web servers do not need to retain information about users between requests. However, in some scenarios web site developers want to maintain state between page requests to provide consistency to…


I Miss You SQL Server Agent: Part 3

[This article was contributed by the SQL Azure team.] Currently, SQL Azure doesn’t have the concept of a SQL Server Agent. In this blog series we are attempting to create a light-weight substitute using a Windows Azure worker role. In the first blog post of the series, I covered how the Windows Azure worker roles…


I Miss You SQL Server Agent: Part 2

[This article was contributed by the SQL Azure team.] Currently, SQL Azure doesn’t have the concept of a SQL Server Agent. In this blog series we are attempting to create a light-weight substitute using a Windows Azure Worker role. In the first blog post of the series, I covered how the Windows Azure worker roles…


I Miss You SQL Server Agent: Part 1

[This article was contributed by the SQL Azure team.] Currently, SQL Azure doesn’t support running SQL Server Agent in the cloud. If you need SQL Server Agent type functionality for SQL Azure, you can use a Windows Azure worker role and some custom code, I will show you how in this blog post series. “Secret…


Programmatically Changing the Firewall Settings

[This article was contributed by the SQL Azure team.] SQL Azure has two types of access control: SQL Authentication logins and passwords and a server side firewall that restricts access by IP address. This blog post will discuss how to programmatically modify the firewall settings. For information about programmatically creating logins, see this blog post….


Improving Your I/O Performance

[This article was contributed by the SQL Azure team.] As a DBA I have done a lot of work improving I/O performance for on-premise SQL Server installations. Usually it involves tweaking the storage system, balancing databases across RAID arrays, or expanding the count of files that the tempdb is using; these are all common techniques…


Implementing Geographic Redundancy

[This article was contributed by the SQL Azure team.] Geographic redundancy is a fancy word for distributing your data across multiple data centers globally. One way to accomplish this is to spread your data across many SQL Azure data centers using Data Sync Service for SQL Azure to synchronize a hub database to many global…