You can reload databases from the command line. 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 must have the reload.sql file.
Run the dbinit utility to create a new empty database file.
Connect to the new database.
Execute the reload.sql script.
The following command creates a file named mynewdemo.db.
dbinit -dba DBA,sql mynewdemo.db
The following command loads and runs the reload.sql script in the current directory.
dbisql -c "DBF=mynewdemo;UID=DBA;PWD=sql" reload.sql
Discuss this page in DocCommentXchange.
|Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0|