To restore a database, use the following syntax:
RESTORE DATABASE 'db_file' FROM 'archive_device' [ FROM 'archive_device' ]... ... [ RENAME dbspace_name TO 'new_dbspace_path' ]... ... [ CATALOG ONLY ]
Remember that you must be connected to the utility_db database as DBA to issue this statement.
You must specify the db_file and at least one archive_device.
For db_file you specify the location of the Catalog Store file for the database (created with the suffix .db by default). You can specify the full pathname or a pathname relative to the directory where the database was created. If you specify a new pathname, the Catalog Store and any files created relative to it are moved to that location, except for any files you include in a RENAME clause.
Just as for backup, each archive_device specifies the API (third party) and, for the Sybase API, the physical tape device or disk file name from which you are restoring. For third-party APIs, the content of the archive_device string depends on your vendor. The archive device must not be a raw disk device. When you restore from disk files using the Sybase API, you must supply the same number of archive devices as were specified when this backup was created.
WARNING! If you misspell a tape device name and give a name that is not a valid tape device on your system, RESTORE assumes it is a disk file and tries to read from it.
See “Specifying archive devices” for details on specifying devices.
If you are restoring from tape devices on Windows, note that you do not need to redouble the backslashes when you specify tape devices for restore, as you did for backup.
This Windows example restores a database to asiquser.db. The database is restored from two disk files. All database files are restored to their original locations.
RESTORE DATABASE 'asiquser.db' FROM 'c:\\asiq\\backup1' FROM 'c:\\asiq\\backup2'