SALES: 1-800-867-1380

Remove a Database from a Sync Group

Updated: December 2, 2014

 

SQL Azure Data Sync Icon

Over time, you may want to modify a SQL Data Sync (Preview) sync group. This topic walks you through removing a database from an existing sync group.

If you need to add a database to a sync group, see the topics Add a Database to your Sync Group.

The Microsoft Azure SQL Data Sync plug-in on the Microsoft Azure Silverlight portal has been decommissioned. Going forward, use the Microsoft Azure Management portal, for Azure SQL Data Sync.

You access SQL Data Sync (Preview) via the SYNC tab under SQL Database at the Microsoft Azure Management portal. The SYNC tab is only available when you have one or more sync groups. See the topic How To: Create a Sync Group (SDS) for guidance on creating and modifying a sync group from this portal.

See the Navigation section below for links to topics you should read before you start and guidance on creating and modifying sync groups.

Modifications you can make to a sync group include:

CautionCaution
Do not physically delete any database in the Sync Group before you remove it from the Sync Group. If you delete the database prior to removing it from the Sync Group it is still registered with the synchronization service and must be recreated to remove it from the Sync Group.

For each Sync Group you want to remove a database from:

  1. Begin at the SQL Data Sync (Preview) landing page.
    To get to the SQL Data Sync (Preview) landing page:

    1. Navigate your browser to the Azure management portal –http://manage.windowsazure.com.

    2. Click SQL Databases.

    3. Click the Sync (Preview) tab.

  2. From the list of sync groups and agents, click the sync group you want to remove the database from.

  3. Click the References tab.

  4. From the list of databases, select the database you want to remove from the sync group.

  5. Click Delete.

  6. Confirm that the database was successfully removed and deprovisioned. See Confirm Success.

If a database fails to deprovision, you can deprovision the database manually.

  1. At the Windows Start menu, type in cmd in the Search text box and hit enter.

  2. Navigate to the directory where you installed the client agent.

  3. Use DeprovisioningUtil to deprovision the database.

    DeprovisioningUtil.exe

    Usage:
    Deprovisioningutil.exe <connection_string> [/f]
    <connection_string> - Specifies the connection string of the SQL Server database or SQL Database instance to be deprovisioned.
    [/f] - Deprovision without warning.

    Examples:
    SQL Server
    deprovisioningutil "Server=(local);Database=NorthWind;Trusted_Connection=True

    SQL Database
    deprovisioningutil "Server=tcp:rwbhdyp2ym.database.windows.net; Database=NorthwindAzure; User ID=<yourID>; Password=<yourPassword>; Trusted_Connection=False;" /f

Confirm that the database was properly removed and deprovisioned.

  1. Launch SQL Server Management Studio.

  2. Connect to the server that hosts the database you deprovisioned.

  3. Find the database you deprovisioned.

  4. If this database belonged to only one sync group, ensure that there are no tables with “_dss” in the name.
    If any tables with “_dss” in the name remain, use DeprovisioningUtil.exe to clean up the database. See the Manual Database Deprovisioning section above.

SQL Data Sync (Preview) is a feature of SQL Database. From the Azure Management portal you can perform all tasks necessary to create, deploy, and modify a sync group.

 

Before you start

Before you begin to design and implement your synchronizations, you should be familiar with these topics.

How to create a sync group

There are six steps to creating a sync group from the Azure Management portal. Details on each step can be found by following these links.

  1. Sign in to the Azure SQL Database Management portal
    SQL Data Sync (Preview) is found as a tab under SQL Database only after you create a sync group.

  2. Install a SQL Data Sync Client Agent

  3. Register a SQL Server database with a Client Agent

  4. Create your sync group

  5. Define your data sync

  6. Configure your sync group (SDS)

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft