sp_iqestspace Procedure

Estimates the amount of space needed to create an index based on the number of rows in the table.

Syntax

sp_iqestspacetable_name, #_of_rows, iq_page_size )

Privileges

User must be a table owner or have the CREATE ANY INDEX, ALTER ANY INDEX, CREATE ANY OBJECT, or ALTER ANY OBJECT system privileges. Users without one of these system privileges must be granted EXECUTE permission to run the stored procedure.

Description

Displays the amount of space that a database requires based on the number of rows in the underlying database tables and on the database IQ page size. This procedure assumes that the database was created with the default block size for the specified IQ page size (or else the estimate is incorrect). This table lists the sp_iqestspace parameters.

sp_iqestspace parameters

Name

Datatype

Description

table_name

char(256)

Name of the table

#_of_rows

int

Number of rows in the table

iq_page_size

smallint

The page size defined for the IQ segment of the database (must be a power of 2 between 65536 and 524288; the default is 131072)