deallocate locator

Description

Deletes a large object (LOB) stored in memory and invalidates its LOB locator.

Syntax

deallocate locator 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

Deallocates the LOB referenced by @v:

deallocate locator @v

Usage

Permissions

Any user can execute deallocate locator.

See also

Commands: truncate lob

Transact-SQL functions: locator_literal, locator_valid, return_lob, create_locator