1.0

Table Of Contents
DescriptionOption
XML le that was created using sqlf write-schema-to-xml, rather
than from a database connection.
Description
Specify one of these pairs of options to connect to a data source with this command:
Use both -client-bind-address and -client-port to connect to a SQLFire cluster as a thin client
and perform the command.
Use both mcast-port and -mcast-address, or use the -locators property to connect to a SQLFire
cluster as a peer client and perform the command.
Use both -url and -driver-class to connect to a datasource using a JDBC URL and driver. You can
use this option to connect to a data source other than SQLFire.
Examples
Note: See also Export, Alter, and Import a Database Schema Using SQLF on page 90 for a full example
of migrating a third-party database to vFabric SQLFire.
This command connects to a SQLFire network server running on localhost:1527, and writes the database schema
as SQL commands to a le named db-schema.sql:
sqlf write-schema-to-sql -file=db-schema.sql
This command connects to a SQLFire network server running on myserver:1234, and writes the database schema
as SQL commands to a le named db-schema.sql:
sqlf write-schema-to-sql -file=db-schema.sql -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
database schema to a le named db-schema.sql:
sqlf write-schema-to-sql -file=db-schema.sql -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 test database schema to a le name db-schema.sql. The SQL le is formatted for use with
vFabric SQLFire:
sqlf write-schema-to-sql -file=db-schema.sql -to-database-type=sqlfire
-url=jdbc:mysql://myserver/test -driver-class=com.mysql.jdbc.Driver
sqlf write-schema-to-xml
Writes the schema of a database to an XML le. You can use the resulting XML le to recreate the schema in
SQLFire, or in another database management system. This command is generally used with a SQLFire cluster
to export the schema, but it can also be used with other JDBC datasources.
page 508
Description on page 508
Examples on page 396
vFabric SQLFire User's Guide392
vFabric SQLFire Reference