RestoreDatabaseRange

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Commands Reference > Database >

RestoreDatabaseRange

available from build: 20050420

Description

It allows to import a large data set.
It has to be used together with the Briefcase technology in it's modality for zipping/unzipping files only.

Syntax

call DBWShell("RestoreDatabaseRange BackupFilePath uidMin uidMax")

Parameters

BackupFilePath

the written backup file

uidMin

the minimum UNIQUE_ID value allowed for the local company

uidMax

the maximum UNIQUE_ID value allowed for the local company

See also

Disconnected Database Replication Model

BackupDatabaseRange

Example

sub main()

 DBWInit(TRUE)
 backupFilePath = replace("C:\FromMechWorksToExtern1.BKP"," ","|")
 ' Extern1 COMPANY unique id range
 uidMin = 0
 uidMax = 100000000
 DBWShell("RestoreDatabaseRange " & backupFilePath & " " & uidMin & " " & uidMax )
end sub