Create Writefile Statement - Sybase Adaptive Server Anywhere Reference

Table of Contents

Advertisement

CREATE WRITEFILE statement

CREATE WRITEFILE statement
Function
Syntax
Permissions
Side effects
See also
Description
Standards and
compatibility
Example
484
Use this statement to create a write file for a database.
CREATE WRITEFILE write-file-name
... FOR DATABASE db-file-name
... [ LOG OFF | LOG ON [ log-file-name [ MIRROR mirror-file-name ] ] ]
write-file-name | db-file-name | log-file-name | mirror-file-name : string
The permissions required to execute this statement are set on the server
command line, using the
require DBA authority.
The account under which the server is running must have write permissions
on the directories where files are created.
Not supported on Windows CE.
An operating system file is created.
"CREATE DATABASE statement" on page 427
"The Write File utility" on page 151
"Working with write files" on page 792 of the book ASA User's Guide
Creates a database write file with the supplied name and attributes.
The file names (write-file-name, db-file-name, log-file-name, mirror-file-
name) are strings containing operating system file names.
$
For information on strings, see "Strings" on page 224.
If you specify no path, or a relative path, the file is created relative to the
current working directory of the server.
You cannot create a write file for a database that is currently loaded.
Vendor extension.
SQL/92
Not supported by Adaptive Server Enterprise.
Sybase
The following statement creates a write file..
CREATE WRITEFILE 'c:\\sybase\\my_db.wrt'
FOR DATABASE 'c:\\sybase\\my_db.db'
LOG ON 'e:\\logdrive\\my_db.log'
command-line option. The default setting is to
-gu

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Adaptive Server Anywhere and is the answer not in the manual?

Questions and answers

Table of Contents