GetSiteExtension

Description

Given the display name of a database object, gets the site extension number (the database identifier or dbid) of a replica database and returns it as a Long.

This method supports MultiSite operations. A locally assigned name may not be unique among all names in a MultiSite environment. This method returns a site extension number that can be appended to the display name of a database object to create an extended name. To find ambiguous display names, use the GetDisplayNamesNeedingSiteExtension method.

Syntaxe

VBScript

site_ext_num = session.GetSiteExtension display_name 

Perl

$site_ext_num = $session->GetSiteExtension(display_name); 
Identificateur
Description
session
Objet Session représentant la session en cours d'accès à la base de données.
display_name
A String containing the display name of a database object as returned by GetDisplayNamesNeedingSiteExtension.
Return value
A Long containing the site extension number or zero (0) if not found.

Commentaires en retour