sp_iqindexmetadata procedure

Function

Displays index metadata for a given index. You can optionally restrict the output to only those indexes on a specified table, and to only those indexes belonging to a specified owner.

Syntax

dbo.sp_iqindexmetadata {'index-name'
[ , 'table-name' [ , 'owner-name' ] ] } 

Permissions

DBA authority required. Users without DBA authority must be granted EXECUTE permission to run the stored procedure.

Usage

Specifying a table name limits output to those indexes belonging to that table. Specifying an owner name limits output to indexes owned by that owner. Omitted parameters default to NULL. You can specify only one index per procedure.

Description

The first row of output is the owner name, table name, and index name for the index.

Subsequent rows of output are specific to the type of index specified.

Table 7-35: sp_iqindexmetadata output rows

Index type

Metadata returned

CMP, DATE, DTTM, TIME

Type, Version

FP

Type, Version, LookupPages, Style, LookupEntries, 1stLookupPage, LargeLOBs, SmallLOBs, IQ Unique, LOB Compression (only if column datatype is LONG VARCHAR or LONG BINARY)

HG

Type, Version, Distinct Keys

HNG

Type, Version, BitsPerBlockmap, NumberOfBits

LD

Type, Version<ld>, Version, Distinct Keys

LF

Type, Version, IndexStatus, NumberOfBlockmaps, BitsPerBlockmap, Distinct Keys

WD

Type, Version, KeySize, Delimiters, DelimiterCount, MaxKeyWordLength, PermitEmptyWord

Examples

The following command displays index information about the HG index hg_index_col54:

sp_iqindexmetadata 'hg_index_col54' , 'metal' , 'DBA';

'DBA',

'metal'

'hg_index_col54'

'Type',

'HG',

''

'Version',

'2',

''

'Distinct Keys',

'0',

''

See also

“sp_iqindex and sp_iqindex_alt procedures”, “sp_iqindexfragmentation procedure”, “sp_iqindexinfo procedure”, and “sp_iqindexsize procedure”

Chapter 5, “Working with Database Objects” and Chapter 6, “Using Sybase IQ Indexes” in System Administration Guide: Volume 1 in the System Administration Guide: Volume 1

“FP_LOOKUP_SIZE option” and “MINIMIZE_STORAGE option” in Chapter 2, “Database Options” in Reference: Statements and Options.

Chapter 6, “Using Sybase IQ Indexes” in System Administration Guide: Volume 1.