Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere Server - SQL Usage » Importing and Exporting Data » Rebuilding databases

Exporting table data or table schema Next Page

Reloading databases


Reloading involves creating an empty database file and using the reload.sql file to create the schema and insert all the data unloaded from another SQL Anywhere database into the newly created tables. You reload databases from the command line.

To reload a database (Command line)
  1. Open a command prompt.

  2. Create a new, empty database file.

    For example, the following command creates a file named newdemo.db.

    dbinit newdemo.db
  3. Execute the reload.sql script.

    For example, the following command loads and runs the reload.sql script in the current directory.

    dbisql -c "DBF=newdemo.db;UID=DBA;PWD=sql" reload.sql