Long awaited build of SQL Server Management Studio with support for SQL Azure is available here. This support is included as part of the November CTP release of SQL Server 2008 R2. Here are the download links for SSMS in 32bit and 64bit flavors.
Following are the seven benefits that you get from SSMS for managing the SQL Azure Database.
1. Seamless navigation:
There will always be cost associated with learning a new tool and becoming an expert. SSMS is a well known tool for managing databases in on-premises Sql Server. The extended support of SSMS for managing SQL Azure Databases same way as it is used for on-premises sql server will be a great value add for customers.
Connecting to SQL Azure Database:
Ø Open SSMS ( type SSMS in command prompt)
Ø It opens up SSMS with connection dialog. Type server name, login name and password in the connection dialog.
Ø If you would like to connect to a particular database, click the “Options>>” button in above dialog, it will take you to “connection properties” page. Enter the database name in “Connect to database field”.
It will try to connect to “TestDB” database and opens following Object Explorer in SSMS.
SQL Azure follows the strict containment policy i.e. it will try to connect to particular database. User has to explicitly make different connections to manage different databases.
If user doesn’t specify the “Connect to database”, SSMS tries to connect to master database. Following is the screenshot of Object Explorer when user connects to “master” database:
If a particular database name is explicitly provided in connection dialog, SSMS will show up only that database hierarchy even though user has permission to connect to “master” database.
If user would like to manage logins or more than one database, he /she should connect to “master” database.
2. Query Editor:
Some of the Query Editor Features which are not supported when connected to cloud are TSQL Debugging and intellisense.
3. Object scripting:
You can also set different scripting options based on your interest.
It will generate the script which is executable on SQL Azure database.
You can also get the script for an object from SQL Azure database to on-premises sql server of interested version.
4. Database Migration:
Lot of customers would like to migrate their databases from on-premises Sql Server (SQL 2000/SQL 2005/SQL 2008) to SQL Azure. SSSM provides “Generate Script Wizard”, which helps customers to migrate their databases in easy and quick way. Following example shows step by step process of migrating “Northwind” database from on-premises Sql Server to SQL Azure server.
Use SSMS to connect to SQL Azure server (master database). Create database called “Northwind”. Execute the previously generated script in the context of “Northwind” database.
5. Object Explorer Details:
Object Explorer Details, a component of SQL Server Management Studio, provides a tabular view of all the objects in the server and presents a user interface to manage them. You can launch the object explorer details by pressing “F7”.
Object Explore details feature is enabled even when connected to SQL Azure. You can also perform the bulk object scripting or bulk object deletion.
6. Basic dialogs support:
SSMS provides different set of dialogs and wizards to make the DBA job simpler. When connected to “SQL Azure”, following two dialogs are supported.
Go to the object you would like to delete in the object explorer and right click on that object. Click the ‘Delete’ in the context menu of this object. It launches the following dialog for object deletion.
Go to the object you would like to view the dependencies in the object explorer and right click on that object. Click the ‘View Dependency’ in the context menu of this object. It launches the following view dependency dialog.
7. Templates:
Template Explore also consists of “SQL Azure Database” templates. These can be used for creating objects in SQL Azure Database. You can find the SQL Azure Database templates under “SQL Azure Database” node in the Template Explorer.