How do I setup SQL Azure Server and Database
The first thing you need to do is setup a Windows Live account and then sign up for Windows Azure Online Services. We discuss this in this post so go ahead and check it out.
Windows Azure Portal
Once your account is setup you will need to log into the Windows Azure Portal. Here is the web address:
We have included a screen capture of this down below:
Go ahead and click on the link under SQL Azure. The web link for this is
In our case sence we have already created a Windows Live account, it forwards us to that address. After activating your subscription, you can create your database server at the SQL Azure Developer Portal. Here is the actual link also.
Windows Azure Project
Once you sign in the Windows Azure Portal, the default project will be listed. By default, the subscription name will be used to name your project. In our case here is the screen shot for our project.
Check the Status column to verify if your subscription is Enabled or not. Click I Accept. Then, you can create your logical server. Choose the location that is closest to you to avoid extra bandwidth costs and achieve better performance.
Create SQL Azure Database Server
Next we are going to create the SQL Azure database server. Enter Administrator Username and Password, click Create Server. Here is the information from our SQL Azure server.
This step goes ahead and create the Sql Azure server and a Master system database under it. Now you should be able to see SQL Azure Server administration page. We have included one for your review.
SQL Azure Firewall settings
Before we create a new database in SQL Azure we are going to configure the Firewall settings. This will allow connections from the Internet within a certain range of IP addresses. Click on Firewall settings and then select Add Rule.
This will open up a new dialog box with information on your home IP address. Go ahead and copy the IP address to the IP range text boxes. Click Submit next. Here is a monitor display from our Server Configuration.
Allow Microsoft Services
In order to allow Microsoft Services and other applications to access your SQL Azure, you also need to check the box labeled Allow Microsoft Services. Here is the step in action.
Create SQL Azure database
Now we are ready to create a SQL Azure database using the SQL Development portal. Click on Databases tab and select Create database. Enter a name for the database, select an edition and max size. Next click on Create to setup the database.
Here is a screen demo from these steps.
After the database is successfully created, you have a few operations that you can perform from the SQL Azure Portal. Here is the explanation on each of these:
This is helpful when you need to share the information for development purpose. When we clicked on it, I got a dialog box with the connection string. I have included part of it here:
Test Connectivity in SQL Azure
In order to make sure that all the settings are correct, go ahead and try to connect using the administration credentials from before. Here is a screen capture of this step.
Drop Database in Azure SQL
Finally when you are all done with the SQL Azure database, you can go ahead and delete the database. You can click on Drop database. The step is shown right below.