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: |
| object | An expression evaluating to an object of type McDataManager. | | sLogicalDatabaseName | Required. A String value. McDBDatabase name property for the new database. | | sPath | Optional. 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. | | sServer | Optional. A String value. The address or name of the McDBDatabase server to receive the new McDBDatabase. | | pDatabaseToCopy | Optional. 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. | | bAddtoDatabases | Optional. 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.
|