Table 6-4: Commands for placing objects on
disk resources
Command
|
Task
|
See
|
create database...on dev_name
or
alter database...on dev_name
|
Makes database devices available
to a particular Adaptive Server database. The log on clause
to create database places the database’s
logs on a particular database device.
|
Chapter
6, “Creating and Managing User Databases”
|
create database...
or
alter database...
|
When used without the on dev_name clause, these
commands allocate space on the default database devices.
|
Chapter
6, “Creating and Managing User Databases”
|
sp_addsegment seg_name,
dbname, devname
and
sp_extendsegment seg_name,
dbname, devname
|
Creates a segment – a
named collection of space – from the devices available
to a particular database.
|
Chapter
8, “Creating and Using Segments”
|
create table...on seg_name
or
create index...on seg_name
|
Creates
database objects, placing them on a specific segment of the database’s
assigned disk space.
|
Chapter
8, “Creating and Using Segments”
|
create table...
or
create index...
|
When used without on seg_name,
tables and indexes occupy the general pool of space allocated to
the database (the default devices).
|
Chapter
8, “Creating and Using Segments”
|