Make a copy of a Database.

<para> The Database being copied must conform to certain criteria therefore, using this method to copy a non-Intersoft Database may not be successful. </para> <para> Do not use this method to copy an MS Access database to another MS Access database. Simply copy the files. </para> <para> Because the database itself contains the Licence information no checks are made here that the provider is valid for the Licence. </para>

Syntax

ISDatabaseBL.DatabaseCopy(sourceDatabaseConnectionInfo, newDatabaseConnectionInfo, [folderName], [overwriteExisting], [copyData], [createOptionalExtendedIndexes], [warnings])

Parameters

NameTypeOptionalByRefDescription
sourceDatabaseConnectionInfo ISDatabaseConnectionInfo Connection information for the source Database.
newDatabaseConnectionInfo ISDatabaseConnectionInfo Connection information for the New Database.
folderName String Optional <para> Some providers allow you to specify a Folder Name (on the server) into which the database files will be copied. </para> <para> Note: For MSJet4 databases, this is NOT the path to copy the file to. </para>
overwriteExisting Boolean Optional Indicates whether to Overwrite Database if it already Exists. If omitted, a value of False is assumed.
copyData Boolean Optional Indicates whether to Copy Data. If omitted, a value of False is assumed.
createOptionalExtendedIndexes Boolean Optional Indicates whether to create Optional Extended Indexes i.e. those that are not flagges as 'Compulsory' in the ISIndex table. If omitted, a value of False is assumed.
warnings Boolean Optional Indicates that Warnings were generated whilst copying the database. If omitted, a value of False is assumed.

Return Value

Boolean

A Boolean value indicating success.

Member of:
ISDatabaseBL
Namespace:
Intersoft.ISSupport6
Assembly:
ISSupport6, Version=6.0.3
Target Framework:
.NET 9.0