Cleaning Up the Instance and Application
When you're finished examining the instance and application created in this chapter, you can use the following steps to remove them from your system. These steps clean up the databases, registry keys, and other settings associated with the instance and application.
-
Open a Notification Services Command Prompt on your development machine and navigate to the Chapter 3 scripts directory by typing the following command:
-
Stop the service.
-
Close any Query Analyzer windows you still have connected to the instance or application databases.
-
Run delete.cmd. If you're using SQL Server authentication, you will be prompted for the SQL username and password for the development account you created in Chapter 2. If you're using Windows authentication, you will not be prompted for a username and password. The delete command will ask for confirmation before proceeding[md] enter y to confirm the operation.
-
Run unregister.cmd.
cd /d C:\SQL-NS\Chapter03\Scripts
net stop NS$Chapter03