DeleteDatabase

설명

스키마 저장소에서 지정된 데이터베이스를 분리합니다.

이 메소드는 실제로 지정된 데이터베이스를 삭제하지 않습니다. 대신, 스키마 저장소에서 데이터베이스에 대한 모든 참조를 제거합니다.

구문

VBScript

adminSession.DeleteDatabase databaseName 

Perl

$adminSession->DeleteDatabase(databaseName); 
ID
설명
adminSession
현재 스키마 저장소 액세스 세션을 나타내는 AdminSession 오브젝트입니다.
databaseName
삭제할 데이터베이스의 이름을 포함하는 문자열입니다.
Return value
없음

예제

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;
#Create a Rational ClearQuest 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);

피드백