Managing NerveCenter
-
Managing the Database - Restoring the Database - Restoring the Database from the Command Line -
When you run SerializeDB from the command line, SerializeDB imports the data into your database from a serialized ASCII file. You can issue SerializeDB commands from a script. For example, on UNIX, you can write a script called restorencdb that shuts down the server, imports the data from backup.asc, and restarts the server.
To restore the database using the command line:
serializedb -F backupfile.asc -O FileToDB -R|C
"DSN=datasourcename;UID=userID;PWD=password"
Replace backupfile.asc with the name of the file you want SerializeDB to import. If your current working directory is not the directory in which backupfile.asc is located, specify the path with the name of the file.
Use -R to have SerializeDB get the data source name, user ID, and password from the
registry. You can use -R with a Microsoft SQL Server database or a Microsoft Access
database. Use -C "DSN=datasourcename;UID=userID;
PWD=password" instead of -R only if you are restoring a Microsoft SQL Server
database. Replace datasourcename with the existing data source name, userID with
the appropriate SQL Server user ID, and password with the corresponding password.
serializedb -F backupfile.asc -O FileToDB -R -D nervecenter.ncdb
Replace backupfile.asc with the name of the file you want SerializeDB to import. If your current working directory is not the directory in which backupfile.asc is located, specify the path with the name of the file.
If the SerializeDB does not import the data successfully, check the Event Log on Windows NT or the system log on UNIX for error messages.
Previous: Restoring the Database Using the SerializeDB Application | Next: Upgrading an Access Database |
Please send comments or corrections to Information Development | This file was last updated on 10 October 2000 |