Description

Returns a logical name and McDBDatabase reference for a physical database path.

Return Type

A McDBDatabase object.   A reference to the found database or Nothing for a failure.

Syntax

object.FindPhysicalDatabase (sPhysicalName, sServer, sLogicalName)

The FindPhysicalDatabase Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDataManager.
sPhysicalNameRequired. A String value. Database path name (McDBDatabase.Path(False).
sServerRequired. A String value. Database server name (McDBDatabase.Server.Name).
sLogicalNameRequired. A String value. The found Logical name (McDatabase.Name) or vbNullString when not found.

Remarks

sPhysicalName Database path name (McDBDatabase.Path(False).
This parameter matches McDBDatabase.Path property.
Example: c:\Databases\A Database\
Database Server Database

sServer Database server name (McDBDatabase.Server.Name).
This parameter matches McDBDatabase.Server property.
if vbNullString is given, "LOCAL" will be assumed signifying a folder path (specified in sLogicalDatabaseName)

Searches for a database with the physical name in the following manner:
1. 'Active' Databases in the ImagePro5 Databases collection.
2. Databases that have been used in the past on the current computer.
3. The Physical database is added to the Databases collection with a unique name.