Connecting from SQL Server 2008 Management Studio to SQL Azure

In this walkthrough we will see how to connect from Local SQL server management studio to SQL Azure. Follow the below steps.

Open SQL Server management studio

azure1.gif

You will get Connect to server dialog box. Click cancel on that.

azure2.gif

After canceling the dialog box click on New Query from left top

azure3.gif

On clicking New Query, you will get the connect to server dialog box again.

azure4.gif

Now here you need to provide, Server name of SQL Azure and Login credential of SQL Azure.

To know what is database server name of SQL Azure portal, login to Windows Azure portal with your live credential and then click on SQL Azure tab

azure5.gif

You will get the server name in form of

abc.database.windows.net

Where abc is name of your SQL Azure server. We need to provide this server name at local sql server management studio.

azure6.gif

Make sure to select SQL Server Authentication and provide login user name and password of your SQL Azure database portal.

After that before clicking Connect click on Option

azure7.gif

Provide the database name you want to connect by default. I am connecting to Student database.

azure8.gif

Now click on Connect to connect to SQL Azure

On successful connection to test

select
* from sys.databases

You will get listed all your SQL Azure databases.

azure9.gif

Up Next
    Ebook Download
    View all
    Learn
    View all