2 replies
by wynander
In Sybase 5 (SQL Anywhere), you will need to follow three stages. These are
1) Unload the old database (use dbunload.exe or 'unload database' in Sybase Central). You will need a DBA login and password to do this.
2) Create a new empty database (use dbinit.exe or 'Create database' in Sybase Central)
3) Reload the new database
A suggested template for a command line script, assuming that your database is not running when you begin is:
dbsrv -x none \yourdb.db
dbunload -xx
-c "uid=xxx;pwd=yyy;eng=yourdb;dbn=yourdb"
dbinit -p4096 newDBname
dbisql -c "uid=dba;pwd=sql;dbf=newDBname.db" read \reload.sql
NOTES
1) and
2) Substitute your DBA account uid and password for 'xxx' and 'yyy'
3) I would recommend you use a different name for the reloaded database. This avoids any possibility of corrupting your old one before you verify that the new one is OK
by wynander
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending