IsSiteWorkingMaster
Description
Enables you to determine whether or not a database is a working master site. You can use this method to determine whether or not a database is a site working master since some operations are only allowed at the site working master database.
Returns True if the site is a working master site; False otherwise. Use this method to determine whether or not a site is a site working master before invoking operations that are only allowed at the site working master database.
Note: This
method is a new method in version 2003.06.15.
Syntax
VBScript
adminSession.IsSiteWorkingMaster
Perl
$adminSession->IsSiteWorkingMaster();
- Identifier
- Description
- adminSession
- The AdminSession object representing the current schema repository access session.
- Return value
- Returns a Boolean True (1) if the database is the working master; False (0) otherwise.
Example
Perl
require "CQPerlExt.pm";
my $admin = shift;
my $pwd = shift;
my $db = shift;
my $dbset = shift;
my $numtimes = shift;
if ($admin eq ""){$admin = "admin";}
if ($pwd eq ""){$pwd = "";}
if ($db eq ""){$db = "SAMPL";}
$SessionObj = CQPerlExt::CQAdminSession_Build();
$SessionObj->Logon( $admin, $pwd, $dbset );
$ismstr = $SessionObj->IsSiteWorkingMaster();
if ($ismstr){
print "is working mstr: $ismstr\n";
}
else{
print "is not working master: $ismstr\n";
}