Permet de déterminer si une base de données est un site maître en cours d'exécution. 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.
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"; }