sp_extendsegment

Description

Extends the range of a segment to another database device.

Syntax

sp_extendsegment segname, dbname, devname

Parameters

segname

is the name of the existing segment previously defined with sp_addsegment.

dbname

is the name of the database on which to extend the segment. dbname must be the name of the current database.

devname

is the name of the database device to be added to the current database device range already included in segname.

Examples

Example 1

Extends the range of the segment indexes for the database pubs2 on the database device dev2:

sp_extendsegment indexes, pubs2, dev2

Usage

Permissions

Only the Database Owner or a System Administrator can execute sp_extendsegment.

See also

Commands alter database, create index, create table

System procedures sp_addsegment, sp_dropsegment, sp_helpdb, sp_helpdevice, sp_helpsegment, sp_placeobject