DeleteDatabase

Description

Dissocie la base de données spécifiée du référentiel de schéma.

This method does not actually delete the specified database. Instead, it removes all references to the database from the schema repository.

Syntaxe

VBScript

adminSession.DeleteDatabase databaseName 

Perl

$adminSession->DeleteDatabase(databaseName); 
Identificateur
Description
adminSession
L'objet AdminSession représentant la session d'accès du référentiel de schéma en cours.
databaseName
A String containing the name of the database you want to delete.
Return value
Aucune.

Exemples

VBScript

set adminSession = CreateObject("ClearQuest.AdminSession")
adminSession.Logon "admin", "admin", "" 

set newDatabase = adminSession.CreateDatabase "NEWDB"
' ...

' Delete the database that was created earlier.
set oldDB = adminSession.DeleteDatabase "NEWDB" 

Perl

use CQPerlExt;

# Créez une session admin Rational ClearQuest
$adminSession= CQAdminSession::Build();

#Connectez-vous en tant qu'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); 

Commentaires