GetDatabase

Description

Renvoie l'objet de base de données avec le nom spécifié.

The databaseName parameter corresponds to the logical database name, that is, the string in the Name field of the Database object.

Syntaxe

VBScript

adminSession.GetDatabase(databaseName) 

Perl

$adminSession->GetDatabase(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 object you want.
Valeur de retour
The Database Object with the specified name, or null if no such database exists.

Exemples

VBScript

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

set dbObj = adminSession.GetDatabase ("NEWDB") 

Perl

use CQPerlExt;

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

#Connectez-vous en tant qu'admin
$adminSession->Logon( "admin", "admin", "" );

#Get the database "NEWDB" object
$dbObj = $adminSession->GetDatabase( "NEWDB" );

#...

CQAdminSession::Unbuild($adminSession); 

Commentaires