Description

Copies McDBDatabase database.

Return Type

A McDBDatabase object.   The newly created McDBDatabase or Nothing when a failure occurs.

Syntax

object.CopyDatabase (sLogicalDatabaseName, [sPath], [sServer], [pDatabaseToCopy], [bAddtoDatabases])

The CopyDatabase Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDataManager.
sLogicalDatabaseNameRequired. A String value. McDBDatabase name property for the new database.
sPathOptional. A String value. Fully qualified file path to the folder that contains the local McDBDatabase files. If vbNullString is given, the path derived from the sLogicalDatabaseName and the default McDBDatabase path.
sServerOptional. A String value. The address or name of the McDBDatabase server to receive the new McDBDatabase.
pDatabaseToCopyOptional. A McDBDatabase object. A McDBDatabase reference to database that will be copied. When not specified (Nothing), a McDBDatabase named "Template" will be used as the source database.
bAddtoDatabasesOptional. A Boolean value. When True, the returned McDBDatabase will be added to the Databases collection.

Remarks

Currently, both the source and destination databases must be LOCAL (not server) databases.