DeleteDatabase
Description
Disassociates the specified database from the schema repository.
This method does not actually delete the specified database. Instead, it removes all references to the database from the schema repository.
Syntax
Perl
$adminSession->DeleteDatabase(databaseName);
- Identifier
- Description
- adminSession
- The AdminSession object representing the current schema repository access session.
- databaseName
- A String containing the name of the database you want to delete.
- Return value
- None.
Example
Perl
use CQPerlExt;
#Create an admin session
$adminSession = CQAdminSession::Build();
#Logon as admin
$adminSession->Logon( "admin", "admin", "" );
#Create a new database "NEWDB" and perform some other tasks
$newDatabase = $adminSession->CreateDatabase( "NEWDB");
# ...
#Delete the database that was created earlier.
$ oldDB = $adminSession->DeleteDatabase( "NEWDB" );
CQAdminSession::Unbuild($adminSession);