Example
ATTENDED
The clause applies only when backing up to a tape device.
ATTENDED ON (the default) indicates that someone is available to monitor
the status of the tape drive and to place a new tape in the drive when needed.
A message is sent to the application that issued the BACKUP statement if the
tape drive requires intervention. The database server then waits for the drive
to become ready. This may happen, for example, when a new tape is
required.
If ATTENDED OFF is specified and a new tape is required or the drive is
not ready, no message is sent, and an error is given.
Each BACKUP operation, whether image or archive, updates a history file
called
. This file is stored in the same directory as the database
backup.syb
server executable.
♦
Back up the current database and the transaction log to a file, renaming
the existing transaction log. An image backup is created.
BACKUP DATABASE
DIRECTORY 'd:\\temp\\backup'
TRANSACTION LOG RENAME
The option to rename the transaction log is useful especially in
replication environments, where the old transaction log is still required.
♦
Back up the current database and transaction log to tape:
BACKUP DATABASE
TO '\\\\.\\tape0'
♦
Rename the log without making a copy:
BACKUP DATABASE DIRECTORY''
TRANSACTION LOG ONLY
TRANSACTION LOG RENAME
Chapter 9 SQL Statements
403
Need help?
Do you have a question about the Adaptive Server Anywhere and is the answer not in the manual?
Questions and answers