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.
Prérequis
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.
Exemple
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 |
![]() |
Discuter à propos de cette page dans DocCommentXchange.
|
Copyright © 2013, SAP AG ou société affiliée SAP - SAP Sybase SQL Anywhere 16.0 |