locator_valid

Description

Determines whether a LOB locator is valid.

Syntax

locator_valid (locator_descriptor)

Parameters

locator_descriptor

is a valid representation of a LOB locator: a host variable, a local variable, or the literal binary value of a locator.

Examples

Example 1

Validates the locator value 0x9067ef4501000000001000000040100400800000000:

locator_valid (0x9067ef4501000000001000000040100400800000000)
-------------------
                   1

Usage

Permissions

Any user can execute locator_valid.

See also

Commands deallocate locator, truncate lob

Transact-SQL functions locator_literal, return_lob, create_locator