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.

Syntax

VBScript


site_ext_num = session.GetSiteExtension display_name 

Perl


$site_ext_num = $session->GetSiteExtension(display_name); 
Identifier
Description
session
The Session object that represents the current database-access session.
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.