How to: Delete an Instance of Notification Services (Command Prompt)

When you delete an instance of Notification Services, you delete the databases for the instance and its applications. After you delete an instance, you should also unregister the instance, unless you are going to recreate the instance and want to use the same registry information.

The following procedure shows how to delete an instance of Notification Services by using Command Prompt utilities.

To delete an instance of Notification Services

  1. If you want to keep a copy of the instance and application data, back up the instance and application databases. For more information, see Backing Up and Recovering Notification Services.

  2. From the Start menu, point to All Programs\Microsoft SQL Server 2005\Configuration Tools, and then click Notification Services Command Prompt to open a command prompt window.

  3. Type the following command to disable the instance:

    nscontrol disable -nameinstanceName

  4. Type the following to stop the instance of Notification Services:

    **net stop ns$**instanceName

    Important

    If the instance is scaled-out across multiple servers, stop the instance on each server that runs the NS$instanceName Windows Service.

    Note

    If you are hosting the Notification Services engine in a custom application or process, use that application or process to stop the instance of Notification Services.

  5. Type the following command to delete the instance:

    nscontrol delete -nameinstanceName-serverdatabaseServer

  6. Type the following command to unregister the instance:

    nscontrol unregister -nameinstanceName

See Also

Tasks

How to: Delete an Instance of Notification Services (SQL Server Management Studio)

Concepts

Deleting Instances of Notification Services
Hosting the Notification Services Engine

Other Resources

Managing Instances and Applications How-to Topics (Notification Services)

Help and Information

Getting SQL Server 2005 Assistance