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.
VBScript
site_ext_num = session.GetSiteExtension display_name
Perl
$site_ext_num = $session->GetSiteExtension(display_name);