CREATE DATABASE statement
428
♦
If you specify a path, any backslash characters (\) must be doubled if
they are followed by an n or an x. Escaping them prevents them being
interpreted as new line characters (\n) or as hexadecimal numbers (\x),
according to the rules for strings in SQL.
It is safer to always escape the backslash character. For example:
CREATE DATABASE 'c:\\sybase\\my_db.db'
LOG ON 'e:\\logdrive\\my_db.log'
♦
If you specify no path, or a relative path, the database file is created
relative to the working directory of the server. If you specify no path for
a log file, the file is created in the same directory as the database file.
♦
If you provide no file extension, a file is created with extension
databases,
for the transaction log, or
.log
TRANSACTION LOG clause
database server logs all changes made to the database. The transaction log
plays a key role in backup and recovery (see "The transaction log" on
page 651 of the book ASA User's Guide), and in data replication.
MIRROR clause
A transaction log mirror is an identical copy of a
transaction log, usually maintained on a separate device, for greater
protection of your data. By default, Adaptive Server Anywhere does not use
a mirrored transaction log. If you do wish to use a transaction log mirror, this
option allows you to provide a filename.
CASE clause
For databases created with CASE RESPECT, all values are
case sensitive in comparisons and string operations.
This option is provided for compatibility with the ISO/ANSI SQL standard.
The default value for the option is CASE IGNORE; that is, all comparisons
are case insensitive. If you create a case-sensitive database, all passwords are
case sensitive. User IDs and other identifiers in the database are case
insensitive, even in case sensitive databases.
PAGE SIZE clause
The page size for a database can be 1024, 2048, 4096,
8192, 16384, or 32768 bytes. The default page size is 2048 bytes. Large
databases generally obtain performance benefits from a larger page size, but
there can be additional overhead associated with large page sizes.
$
For more information, see "Information utility options" on page 96.
For example:
CREATE DATABASE 'c:\\sybase\\my_db.db'
PAGE SIZE 4096
for the mirror log.
.mlg
The transaction log is a file where the
.db
for
Need help?
Do you have a question about the Adaptive Server Anywhere and is the answer not in the manual?
Questions and answers