CreateDatabase

Description

Crée une base de données et l'associe avec le référentiel de schéma.

Remarque : This method is for Windows only.

The new database object does not have any of its properties set. You can set the basic database information (such as timeout intervals, login names, and passwords) by assigning appropriate values to the properties of the returned Database object. You must also call the returned object's SetInitialSchemaRev method to assign a schema to the database. See the "Database Object" for more information on creating databases.

Syntaxe

VBScript

adminSession.CreateDatabase(databaseName) 

Perl

$adminSession->CreateDatabase(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 you want to give to the new database.
Valeur renvoyée
A Database Object representing the new database.

Exemples

VBScript

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

set newDatabaseObj = adminSession.CreateDatabase ("NEWDB")

' set up the database

' ... 

Perl

use CQPerlExt;

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

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

#Create the database "NEWDB" object
$newDatabaseObj = $adminSession->CreateDatabase( "NEWDB" );

# set up the database

#...

CQAdminSession::Unbuild($adminSession); 

Feedback