partition_object_id

Description

Displays the object ID for a specified partition ID and database ID.

Syntax

partition_object_id(partition_id [, database_id ] )

Parameters

partition_id

is the ID of the partition whose object ID is to be retrieved.

database_id

is the database ID of the partition.

Examples

Example 1

Displays the object ID for the partition whose partition ID is 2:

select partition_object_id(2)

Example 2

Displays the object ID for the partition whose partition ID is 14 and whose database ID is 7:

select partition_object_id(14,7)

Example 3

Returns a NULL value for the database ID because a NULL value is passed to the function:

select partition_object_id( 1424005073, NULL)
 -----------
NULL
(1 row affected)

Usage