Deleting a Microsoft SQL Server 2005 Database

This method deletes an existing Microsoft SQL Server 2005 database, from the Parallels Pro Control Panel server.

Method

public void DeleteMSSQLDatabase (string DatabaseName, string username, string password)

Parameters

  • DatabaseName, which is the name of the SQL 2005 database to be deleted.
  • username, which is the username of the site administrator
  • password, which is the password of the site administrator

Return Value

none

Example Code:

//To delete database specify complete name of database

w.DeleteMSSQLDatabase("mysite_com_db___wstestdb", "admin@mysite.com", "ensim123");

Appendix A