URL Attributes for Synchronization
Page 4 of 4

createTargetFrom=copyFileName

Function

Use the createTargetFrom attribute when creating a target database. copyFileName specifies the name of the copy file from which to create the target database. Set the value of the createTargetFrom attribute to the path or URL of the copy file (created using the COPY PUBLICATION command). This attribute is required when you create a target database.

You should set this attribute only once, at the time you create the target database. If you specify createTargetFrom for a database that already exists, it has no effect, and no warning is issued.

If you want, you can move the copy file onto the machine where the target database will reside before creating the target database.

Note that no quotes are used around the name of the copy file.

Example

The following database connection URL creates a target database named MyTargetDB from the copyPub1.out file:

jdbc:cloudscape:MyTargetDB;createTargetFrom=copyPub1.out

You can use an URL as well as a path name to specify the copy file. For example:

jdbc:cloudscape:myTargetDB;createTargetFrom=http://adomain.com/createcopyfiles?var1=35

Since Cloudscape uses semicolons to delimit attributes, if the URL contains a semicolon(;) do one of the following:

  • Put the createTargetFrom attribute in the Properties set passed to the DriverManager.getConnection call.
  • Use the standard URL encoding (%3b) for semicolons.