alter partition

Description

Changes the size of a partition.

Syntax

alter partition logical_name [ expand [ size  = size ] ]

Parameters

logical_name

A name for the partition. The name must conform to the rules for identifiers. The name is also used in the drop partition and create partition commands.

expand

Specifies that the partition is to increase in size.

size

Specifies the number of megabytes the partition is to increase. The default value is 2MB.

Examples

Example 1

This example increases the size of logical partition P1 by 50MB:

alter partition P1 expand size = 50

Example 2

This example increases the size of logical partition P2 by 2MB:

alter partition P2 

Usage

Permissions

Only the "sa" user can execute alter partition.

See also

admin disk_space, create partition, drop partition