1.0

Table Of Contents
This command connects to a SQLFire network server running on myserver:1234, and writes the DTD to a le
named data.dtd:
sqlf write-data-dtd-to-file -file=data.dtd -client-bind-address=myserver
-client-port=1234
This command connects as a peer client to a SQLFire system running on multicast port 1234, and writes the
DTD to a le named data.dtd:
sqlf write-data-dtd-to-file -file=data.dtd -mcast-port=1234
-extra-conn-props=host-data=false
This command uses MySQL Connector/J to connect to a MySQL server running on the "myserver" host, and
writes the DTD for the test database schema to a le name test.dtd:
sqlf write-data-dtd-to-file -file=test.dtd
-url=jdbc:mysql://myserver/test -driver-class=com.mysql.jdbc.Driver
sqlf write-data-to-db
Inserts data into a database using one or more data XML les (created with sqlf write-data-to-xml), and having
the database schema dened in one or more schema XML les (created with sqlf write-schema-to-xml). This
command is generally used with a SQLFire cluster to export table data, but it can also be used with other JDBC
datasources.
page 508
Description on page 508
Examples on page 396
Syntax
To insert all table data from one or more data XML les using the schema specied in one or more schema XML
les, use the syntax:
sqlf write-data-to-db -files=<path,path,...> -schema-files=<path,path,...>
[-alter-identity-columns]
[-batch-size=<size>]
[-bind-address=<address>]
[-catalog-pattern=<pattern>]
[-client-bind-address=<address>]
[-client-port=<port>]
[-database-type=<db type>]
[-delimited-identifiers=<true | false>]
[-driver-class=<class name>]
[-ensure-fk-order=<true | false>]
[-extra-conn-props=<properties>]
[-help] [-locators=<addresses>]
[-mcast-address=<address>]
[-mcast-port=<port>]
[-password[=<password>]]
[-schema-pattern=<pattern>]
[-url=<url>]
[-user=<username>]
[-verbose=<level>]
This table describes options for the sqlf write-data-to-db command. Default values are used if you do not specify
an option.
vFabric SQLFire User's Guide376
vFabric SQLFire Reference